You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to build a dropdown that contains elements like switches and input fields. The switches I have figured out and the input fields sort of work, however I am running into an issue I haven’t been able to figure out.
Every time the mouse moves inside the dropdown the input fields lose focus. It’s not a huge problem but I was wondering if there was a way to prevent this from happening. Ideally I would like hovering to work as normal, where menu item backgrounds change colour and submenus display but inputs don’t lose focus unless I click outside of them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I am trying to build a dropdown that contains elements like switches and input fields. The switches I have figured out and the input fields sort of work, however I am running into an issue I haven’t been able to figure out.
Every time the mouse moves inside the dropdown the input fields lose focus. It’s not a huge problem but I was wondering if there was a way to prevent this from happening. Ideally I would like hovering to work as normal, where menu item backgrounds change colour and submenus display but inputs don’t lose focus unless I click outside of them.
Is this possible to do?
Beta Was this translation helpful? Give feedback.
All reactions