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

allow touch devices to interact with autocomplete #541

Merged

Conversation

ibarrick
Copy link
Contributor

@ibarrick ibarrick commented Nov 1, 2016

Currently, touch devices are unable to focus on the input in paper-autocomplete because ember-basic-dropdown does a preventDefault on the touch event that prevents the focus event from being called on the input. This corrects that issue.

@miguelcobain miguelcobain merged commit 867cb81 into adopted-ember-addons:master Nov 2, 2016
@miguelcobain
Copy link
Collaborator

Can you clarify why paper-select doesn't need this?

@ibarrick
Copy link
Contributor Author

ibarrick commented Nov 2, 2016

@miguelcobain Because there is no need to focus on any of the children of the trigger in the case of paper-select because there is no text input underneath the trigger that we're trying to access. In autocomplete we need to focus on the input in order to type, so it's problematic that the event is not allowed to go past the trigger container.

@miguelcobain
Copy link
Collaborator

I see. Thank you.

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

Successfully merging this pull request may close these issues.

2 participants