-
Notifications
You must be signed in to change notification settings - Fork 844
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
[EuiComboBox] Single-select combobox should not allow deletion using delete key unless isClearable=true #4394
Comments
I see a couple options for this:
Thoughts @cchaos @chandlerprall ? |
Honestly, when looking at this exact example from Lens, I think the fault lies in that Lens doesn't have a good error state for when a field is not selected. The empty combobox should come up as invalid when empty and the configuration node should show as invalid the invalid state like: The problem with a Now, if I think about EuiComboBox's selection states (specifically Take this specific state where it's a single-selection, no clear button, and I want to replace the option I have selected, but I need to find it first. It is not clear that if I just start typing that the current selection will be replaced with what I type mainly because the cursor is at the end of the text, indicating that's where typing will occur. So if a user tries to Basically I think this is actually a harder UX problem than it seems on the surface and may require more thought and design. But for the specific Lens issue, there are ways to fix it on that side by using better invalid states. |
@cchaos we already implemented the error states you're discussing for the new functions in Lens, but not for older functions. We can update those too. elastic/kibana#89032 |
Closing as not planned |
We have occasionally run into Lens bugs like this one where we are not expecting the ComboBox to be clearable. Users can select the current option and then press the delete key, which causes the last token to be deleted. Can we prevent that interaction?
Steps to reproduce:
The text was updated successfully, but these errors were encountered: