Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android/TextField): set focusable, clickable to false if not editable #8525

Merged

Conversation

Rahul1d
Copy link
Contributor

@Rahul1d Rahul1d commented Apr 13, 2020

Do not clear key listener when editable is false This prevents the input type to be changed.
Instead, we can set focusable, clickable to false.
This allows to change input Type i.e (secure) at run time when editable is false.

Reference issue: #8523

PR Checklist

What is the current behavior?

In android platform, In TextField if editable is set to false. We cannot change or toggle secure property. This occurs because we are setting KeyListener to false. Instead we can set Focusable, clickable to false.

What is the new behavior?

Now, one can toggle between secure property, even if editable is set to false.

…ble is false

Do not clear key listener when editable is false This prevents the input type to be changed.
Instead, we can set focusable, clickable to false.
This allows to change input Type i.e (secure) at run time when editable is false.

Reference issue: NativeScript#8523
@cla-bot cla-bot bot added the cla: yes label Apr 13, 2020
@vtrifonov vtrifonov changed the title fix (android/TextField): set focusable, clickable to false if not editable fix(android/TextField): set focusable, clickable to false if not editable Apr 14, 2020
@vtrifonov vtrifonov merged commit 50e58fa into NativeScript:master Apr 14, 2020
NathanWalker pushed a commit that referenced this pull request Aug 7, 2020
…ble is false (#8525)

Do not clear key listener when editable is false This prevents the input type to be changed.
Instead, we can set focusable, clickable to false.
This allows to change input Type i.e (secure) at run time when editable is false.

Reference issue: #8523

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
NathanWalker pushed a commit that referenced this pull request Aug 7, 2020
…ble is false (#8525)

Do not clear key listener when editable is false This prevents the input type to be changed.
Instead, we can set focusable, clickable to false.
This allows to change input Type i.e (secure) at run time when editable is false.

Reference issue: #8523

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants