Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS.focus does not work on iOS for text fields #3563

Open
MitchellJeppson opened this issue Dec 8, 2024 · 0 comments
Open

JS.focus does not work on iOS for text fields #3563

MitchellJeppson opened this issue Dec 8, 2024 · 0 comments

Comments

@MitchellJeppson
Copy link

Environment

  • Elixir version (elixir -v): Elixir 1.16.0 (compiled with Erlang/OTP 26)
  • Phoenix version (mix deps): 1.7.14
  • Phoenix LiveView version (mix deps): 1.0.0
  • Operating system: Mac OS Sequoia 15.1.1
  • Browsers you attempted to reproduce this bug on (the more the merrier): iOS Safari, iOS Chrome, Android Chrome, Mac OS Safari and Chrome
  • Does the problem persist after removing "assets/node_modules" and trying again? Yes/no: yes

Actual behavior

Using JS.focus does not focus a text field if you are on iOS mobile. Here is some discussion and a simplified example of the issue. Sound like safari doesn't like to pop up the virtual keyboard unless it is a directly in response to user action. In that linked discussion above it was floated that it could be due to the debounce logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant