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

Double click required to select option on iOS when using FastClick #1533

Closed
birjj opened this issue Oct 12, 2016 · 1 comment
Closed

Double click required to select option on iOS when using FastClick #1533

birjj opened this issue Oct 12, 2016 · 1 comment

Comments

@birjj
Copy link

birjj commented Oct 12, 2016

When using FastClick, iOS browsers require a double tap to select an option from a bootstrap-select. Seems related to this issue, which was fixed when bootstrap removed their touchstart.dropdown.data-api listeners. bootstrap-select still has one of those.

To verify that the problem is with the $button, we can add the needsclick class to it, so it gets ignored by FastClick (JSFiddle). This is a rather ugly solution though, so it should be much preferred to simply remove the touchstart listener from the library, as was done with bootstrap.

@virik
Copy link

virik commented Oct 17, 2016

I added your fix while waiting for an update.

Are you also having problem with the native drop down sometimes showing for a couple of seconds before bootstrap-select shows?

avantika-gupta-jtg pushed a commit to JoshLabs/bootstrap-select that referenced this issue May 14, 2020
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

2 participants