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
Hey! I'm playing around with modal/dialog component and i have to make the input that lives inside of that modal autofocusable. So, modal gets opened, input being inside gets autofocused on automatically.
The easiest solution that comes to my mind would be to attach a stimulus component to that modal which listens for modal open event and focuses on the field but sadly modal component doesn't emit any sort of events.
Would that be something you are willing to add to RubyUI?
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.
-
Hey! I'm playing around with modal/dialog component and i have to make the input that lives inside of that modal autofocusable. So, modal gets opened, input being inside gets autofocused on automatically.
The easiest solution that comes to my mind would be to attach a stimulus component to that modal which listens for modal open event and focuses on the field but sadly modal component doesn't emit any sort of events.
Would that be something you are willing to add to RubyUI?
Thank for this amazing piece of software.
Beta Was this translation helpful? Give feedback.
All reactions