[LiveComponent] Autofocus attribute not working after refresh #2496
Unanswered
mathieu-coder
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a LiveComponent, any
<input>
using theautofocus
attribute loses (auto)focus after the component is refreshed.This behavior can be reproduced using the inline editing example : https://ux.symfony.com/demos/live-component/inline-edit
I tried to add a Stimulus controller to handle the focus process, but it did not work.
Beta Was this translation helpful? Give feedback.
All reactions