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

Select: Form-control navigation on iOS jumps over sl-select #2144

Open
bjerkins opened this issue Aug 20, 2024 · 1 comment
Open

Select: Form-control navigation on iOS jumps over sl-select #2144

bjerkins opened this issue Aug 20, 2024 · 1 comment
Labels
bug Things that aren't working right in the library.

Comments

@bjerkins
Copy link

Hey guys. First of all, thanks for an awesome library.

Describe the bug

On iOS , there's this feature where you can easily jump between form controls with the up-down arrows above the keyboard. The jumping also takes place when you use autofill on a field.

It seems that the sl-select component does not get recognized as one of the fields the browser can jump to, so it simply skips over it. See video in the section below.

With a native select, the browser jumps to the select field and opens it, which is quite user friendly.

Any thoughts on this ? Perhaps this won't be possible with the current approach of having the native inputs residing in the shadow dom?

To Reproduce

I screen recorded the behavior so it's easy to see.

select.mov

Notice that I'm tapping the up and down arrows to jump between the input fields.

Browser / OS

  • OS: iOS
  • Browser: Safari
  • Browser version: 17.5.1

Thanks !

@bjerkins bjerkins added the bug Things that aren't working right in the library. label Aug 20, 2024
@KonnorRogers
Copy link
Collaborator

🤔 Interesting. Probably has to do with the <input> in the shadow dom being readonly. Thanks for the report. I wonder if we set it to readonly on focus if itd be an easy way to circumvent this. I'll do some testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants