Combobox.Button wrapper Combobox.Input auto close when I typing space #1209
Replies: 3 comments 1 reply
-
I ran into this as well - if you render the |
Beta Was this translation helpful? Give feedback.
-
Hey! Don't render an input inside a button that doesn't make much sense. That's like doing this in html: <button>
<input />
</button> The button can be used as a sibling to render a little dropdown icon or similar. What's the reason you want to do this? |
Beta Was this translation helpful? Give feedback.
-
I did the same thing in order to have the options opened as soon as the input is clicked. A workaround would be to render the button as
Other approaches can be seen here #1236 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
<Combobox.Button className={isMainLayout ? 'mr-2' : 'mr-4'}>
<Combobox.Input
value={query}
placeholder={placeholder}
/>
</Combobox.Button>
How I can remove the keypress space for Combobox.Button ?
Beta Was this translation helpful? Give feedback.
All reactions