Textinput: Make option clearBtn work at runtime

Original commit message: clearButton: Fix bug :  A user should not change  the
value of clearBtn option in runtime.