[DropdownMenu] Maintaining focus on a text input #1009
Replies: 2 comments 2 replies
-
Hi @ThePaulMcBride , Unfortunately this would be a misuse of the DropdownMenu pattern. The menu items have What type of component are you trying to create here? |
Beta Was this translation helpful? Give feedback.
-
For those of you who need an input bar and are confused about why input loses focus, switch out <DropdownMenu.Item> for a div (might not be accessible, but I'm building an internal tool so that's ok) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the drop down menu where one of the items is a simple text/number input and running into issues. Not sure if this is just flat out not supported or not, but it would be very useful!
Essentially, when the input is focused, if the mouse is moved, it will lose focus.
Any ideas on how I can stop that from happening?
Here is a minimal reproduction:
https://n0fzt.csb.app/
Beta Was this translation helpful? Give feedback.
All reactions