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
I have a few leva menus on my project that get updated dynamically. I'm hoping that whenever they get updated the first input field on the menu is automatically focused. Anyone have any ideas on how this can be done? If I was able to queryselect the element it would be a pretty straightforward problem but since leva creates the elements and they are constantly changing ids I'm a bit stumped on how I can make this happen.
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few leva menus on my project that get updated dynamically. I'm hoping that whenever they get updated the first input field on the menu is automatically focused. Anyone have any ideas on how this can be done? If I was able to queryselect the element it would be a pretty straightforward problem but since leva creates the elements and they are constantly changing ids I'm a bit stumped on how I can make this happen.
Beta Was this translation helpful? Give feedback.
All reactions