Replies: 3 comments 3 replies
-
@dakahn is this a default that's coming through from Downshift or is it something our component is doing? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think this proposal makes sense. I would expect the search term to stay there after you move focus, unless it's been specifically cleared. Is it possible to override this if it's coming from Downshift? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Worth noting is that we're discussing Combobox, but this behavior probably is in all our Downshift components (Multiselect etc) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently if the user enters a search term into the Carbon Combobox and moves focus to another element via keyboard or click the search term is cleared.
This behavior seems kinda unique. I couldn't find another Combobox in the wild that had similar functionality (including the WAI-Aria examples seen here). Youtube, Twitch, Github, and Twitter all do not clear the search term when focus is moved.
So I'm proposing that we change this default behavior and allow the user to set the 'clear on focus move' prop if they want the old behavior.
Beta Was this translation helpful? Give feedback.
All reactions