kobaltedev / kobalte

A UI toolkit for building accessible web apps and design systems with SolidJS.
https://kobalte.dev
MIT License
1.2k stars 61 forks source link

feat(combox) allow add value to list, if not exist #442

Open DamirSadykov opened 1 month ago

DamirSadykov commented 1 month ago

Is your feature request related to a problem? Please describe. I am creating a form component that lets users select options dynamically. If a user enters a value that is not already in the combobox list, it should be added. I checked the API Reference but couldn't find a way to do this.

Describe the solution you'd like Expected behavior: When the enter key is pressed, if the value is not in the list, it should be added and processed as if it was already there.

Describe alternatives you've considered I was looking at onInputChange, from which I take the value after pressing enter and directly add it to the list for the combobox.


I can try create PR for it issue