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

Cannot select first option when using defaultText (mobile only) #205

Closed
aaronjbaptiste opened this issue Sep 16, 2013 · 2 comments
Closed
Assignees
Labels

Comments

@aaronjbaptiste
Copy link

To reproduce:

  1. Go to http://gregfranko.com/jquery.selectBoxIt.js on an iPad (or on Chrome with user agent iPad).
  2. Go to the defaultText example
  3. Try to select the first option: "SelectBoxIt is:"
  4. It cannot be selected first time

Same thing works fine via a desktop browser, so it must be something to do with the native drop down.

@ghost ghost assigned gfranko Sep 17, 2013
@gfranko
Copy link
Owner

gfranko commented Sep 17, 2013

I'll make sure to fix this in the next release. Thanks for reporting!

@gfranko
Copy link
Owner

gfranko commented Sep 27, 2013

After looking at this issue some more, I don't think there is a perfect solution. Because the original select box is used for mobile devices, SelectBoxIt can't listen for a click event on the select box options (since browsers don't support this behavior). The alternative approach, that I am not using, is to listen for when the select box is clicked on a mobile device and then to switch the text to the currently selected option. It isn't perfect, but it is the best I can do right now. To test the latest code, grab it from the dev branch here: https://github.com/gfranko/jquery.selectBoxIt.js/blob/dev/src/javascripts/jquery.selectBoxIt.min.js

@gfranko gfranko closed this as completed Sep 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants