This reminds me of another post on how WebKit used to require a whole rigamarole of propagating user gestures to call the WebAuthn API. Funnily enough, that discussion was also prompted by one of your questions. Requiring "native click listener" within LiveView for webauthn
Check out this answer on StackOverflow, the key bit is that HTMLElement.focus()
needs to be called synchronously from the event handler like you’re doing in that hook. And from skimming the LiveView source code, I suspect the debouncing logic to LiveView bindings might be causing some unintended side effects here.