focusing an input with x-trap and x-transition #2092
delta1186
started this conversation in
2. Show and tell
Replies: 1 comment 2 replies
-
I've used a Vue allows functions to run when a transition is complete: https://vuejs.org/v2/guide/transitions.html#JavaScript-Hooks but Alpine doesn't have this functionality. There's also the JavaScript |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order for me to get the .focus() to work in my ref input I had to wait for the transition to complete. Thus the setTimeout 300ms. :)
Here is slideover.blade.php
And in your slot section you have an input with x-ref=start.
Beta Was this translation helpful? Give feedback.
All reactions