I have a text box. When the user focuses the text field, I call the assistant to help them fill it. When the text box is blurry, the assistant disappears.
The problem is that the helper should now include combobox (this is a regular tag select). Previously, to allow the user to interact with the helper without losing focus, we used preventDefault () for mousedown events. However, it looks like the combobox open handler is the default event in mousedown. Therefore, if we prevent Default, the combobox ignores user clicks. If we do not prevent Default, then the combo box opens for a nanosecond, and then the field loses focus, after which the assistant disappears, including the combo box.
How can I stop the field from losing focus, but still allow the user to interact with the drop-down list?
Edit: I would prefer to avoid entering focus loss. Auxiliary functions do not make much sense when the input is not focused. I just tried to show the helper after you click on combobox, even if the input is not focused, but decided that I do not want to do this.
source
share