Should ListboxOption allow value null? #2036
Unanswered
laurensiusadi
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From my understanding Listbox component replaces HTML
Select
element.Using
Select
, we can bindnull
tooption
value like this:<option :value="null">Please select one</option>
But we cannot do
<ListboxOption :value="null">Please select one</ListboxOption>
Type 'null' is not assignable to type 'string | number | boolean | Record<string, any> | undefined'
Is there a workaround for me to bind
null
?Sorry duplicate of #2026
Beta Was this translation helpful? Give feedback.
All reactions