Skip to content

Create new item via combobox #3983

Answered by roxanagomez
charleneyjh1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @charleneyjh1 Sure here is a clarification of how this interaction works:

  1. When a user types something that is not part of the dropdown items, the "create" item list appears and auto-populates with the user's input.
  2. When the user selects the new item, the input field updates with the selection
  3. For Multi-select, it shows the new item as a Form Pill.
  4. For Singleselect, it shows the new item as a value.

Also you can check this Code Sandbox demo created by our engineers. This was a time-boxed task so it gets the functionality most of the way there: It doesn't close/clear the Combobox on select, and you'll have to add the matching hover/focus state.

We're working on ways to have a better d…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@charleneyjh1
Comment options

@charleneyjh1
Comment options

@roxanagomez
Comment options

Answer selected by roxanagomez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants