Disabled prop not working on Combobox.Input #1292
Replies: 2 comments 1 reply
-
Hey! Thank you for your bug report! We consider the |
Beta Was this translation helpful? Give feedback.
-
@calthomson if you need to disable the input element itself you could do something in those lines:
And have an onInputFocus function such as:
The first time you open the combobox, the focus moves to the input element. This way your onInputFocus function will run, and you will be able to access the input element in "old-school javascript"-style, and add the disabled attribute to it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Looks like the
disabled
prop onCombobox.Input
isn't actually disabling the input box.Ex:
Expected: Should not be able to type into the input box.
Actual: I'm still able to type into the input box.
If I use dev tools to set
disabled=true
on the resultinginput
box that is rendered forCombobox.Input
, it works, so it seems like theCombobox.Input
is just not forwarding that prop correctly perhaps.Beta Was this translation helpful? Give feedback.
All reactions