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

Click handling within TextField #225

Closed
syampillai opened this issue May 17, 2018 · 2 comments
Closed

Click handling within TextField #225

syampillai opened this issue May 17, 2018 · 2 comments

Comments

@syampillai
Copy link

Currently, clicking anywhere inside the TextField (including its prefix/suffix components) brings the focus to it. I have a prefix component on ComboBox that, when clicked, requires to pop up another user-interface for a separate user interaction. However, ComboBox gets opened when this happens and I need to close it programmatically (Also, closing the ComboBox programmatically causes a flicker on the screen.)

@web-padawan
Copy link
Member

Thanks for the issue, and sorry for not answering earlier. In order to prevent focusing the text field, you need to add the event listener to prefix or suffix element for the mousedown event and prevent it, like demonstrated in this glitch: https://glitch.com/edit/#!/ubiquitous-tray?path=index.html:19:25

@web-padawan
Copy link
Member

Closing as duplicate of #125. In the meanwhile, workaround from the above comment can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants