kobalte
kobalte copied to clipboard
Combobox incorrect type
Kobalte's combobox only clears the input when given a value of null, but this conflicts with the fact that combobox expects a value of type Option | undefined
, and not Option | null
: https://stackblitz.com/edit/kobalte-combobox-undefined-value-bug?file=src%2FApp.jsx
Also, the type of the onChange
prop is (option: Option) => void
even though option is sometimes null (for example, when a selected option is deselected).