-
Notifications
You must be signed in to change notification settings - Fork 182
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
<Input /> element inside trigger gets focused unintentionally on mobile devices #621
Comments
That was kind of intentional, so users can start typing (and filtering) the options immediately. |
Could we wrap target.focus() with "hasMoved()" check as well, so there is certain threshold before focus() is called? In my app with current implementation if I want to quickly scroll to bottom of my "view" and I happen to hit trigger element, then it is impossible to scroll down because input gets focused and browser viewport is scrolled back to element at hand. |
ember-basic-dropdown/addon/components/basic-dropdown-trigger.ts
Line 112 in 4596ed5
Here we handle
target.focus()
call, so if we have following template:It will always forcefully focus the element when user happens to start scroll on mobile having touch point on the trigger/input element.
The text was updated successfully, but these errors were encountered: