-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
selectOnClose: true should not select highlighted option when esc pressed #4579
Comments
As per the documentation, this is the expected behavior:
See #4578 for a more detailed discussion of this behavior. I would tend to agree with you, that ESC should behave more like a "cancel" action, and keep the currently selected value. It's also important to determine how this should behave in multi-select cases as well. |
Hey pedrofurtado, why did you close my issue? And without a comment! Alex agreed that esc should act like cancel, basically undoing any change since entering the field leaving the previous value(s) unchanged. |
We don't have immediate plans to provide this. We are focused to fix some major UI bugs (that are majority of issues and PR's). But if you open a PR with unit tests, I will be glad to review and approve if everything is ok 👍 |
@pedrofurtado this is happening in case of free text also(tags : true). Even when entered sometext and clicking inside input field creating pill. Any solutions how to prevent this?? |
Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see...
I was expecting it to keep currently selected option, but actually it selected highlighted option. My goal for using selectOnClose was to have tab key work to select it.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: