-
Notifications
You must be signed in to change notification settings - Fork 76
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
Combobox blank after selecting the same option twice #4738
Comments
@paulcpederson would one of the suggestions for an additional "mode" or type of Combobox selection work here? Both UX could be desirable I think... #3074 |
This issue is exclusively tied to single select to me. In multi select I think the behavior is fine, but if I'm using single select and I select an item, I expect it to behave like a select menu. Selecting one item vs another should not have different behavior, IMO. |
We could look at the behavior of MUI as an example - they by default have a clear affordance that is opt-out with Basically always prevent ability to "double click clear" in single-select, but have the clear affordance, which in your use case you would opt-out of with the prop... I think that sounds reasonable? To summarize proposal:
(Alternatively, opt-in to
|
Would the goal be to have the current behavior of |
For posterity, we'll proceed to add |
**Related Issue:** #4738 ## Summary Adds `single-persist` mode to `calcite-combobox` to allow users to opt-in to this change in selection behavior (vs making it a breaking change on the current `single` selection mode). `clearDisabled` will behave the same way unless we want to make an exception to this mode.
Installed and assigned for verification. |
The mouse event is verified with @jcfranco Would we expect the same behavior for keyboard users? Here is a codepen for testing. |
**Related Issue:** #4738 ## Summary Adds `single-persist` mode to `calcite-combobox` to allow users to opt-in to this change in selection behavior (vs making it a breaking change on the current `single` selection mode). `clearDisabled` will behave the same way unless we want to make an exception to this mode.
Installed and assigned for verification. |
@geospatialem Forgot to focus on keyboard toggling. It should be good to go now! 🚀 |
Verified with both mouse and keyboard selections in |
Actual Behavior
When a combobox option is selected in single select mode, selecting it again does not show the option as selected. It stays blank with the text input visible.
Expected Behavior
Selecting an option should show that option as selected. This will keep the combobox consistent with calcite select and consistent internally with itself as after selecting a new option.
Reproduction Sample
https://codepen.io/paulcp/pen/abqXgqE
Reproduction Steps
Reproduction Version
1.0.0-beta.83
Relevant Info
Looking at different versions, it seems like this has behaved very differently in different versions.
Regression?
1.0.0-beta.69
The text was updated successfully, but these errors were encountered: