kobalte icon indicating copy to clipboard operation
kobalte copied to clipboard

Combobox incorrect type

Open jer3m01 opened this issue 7 months ago • 1 comments

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).

source

jer3m01 avatar Jun 29 '24 00:06 jer3m01