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

only prevent default on touchevents when results are not showing #2725

Merged
merged 2 commits into from
Oct 27, 2016

Conversation

koenpunt
Copy link
Collaborator

@koenpunt koenpunt commented Oct 15, 2016

The fix introduced in #2119 prevented all further touch interaction with Chosen like scrolling or selecting options.

I don't know how that has been in there for so long...

I've now updated that to only preventDefault the events when the results are not showing.

fixes #2289
fixes #2443

@koenpunt
Copy link
Collaborator Author

ping ✨ @harvesthq/chosen-developers @stof

@tjschuck
Copy link
Member

LGTM 👍

@koenpunt koenpunt merged commit bd47b88 into harvesthq:master Oct 27, 2016
@koenpunt koenpunt deleted the tablet-fixes branch October 27, 2016 21:20
@jessarcher
Copy link

Any chance of releasing a package containing this fix sometime soon? It would be much appreciated.

@koenpunt
Copy link
Collaborator Author

v1.7.0 has just been released

sdemjanenko added a commit to meraki/chosen that referenced this pull request Aug 14, 2017
* tag 'v1.7.0': (76 commits)
  Go to 1.7.0
  add max_shown_results spec for prototype
  replace event.simulate for simulant library
  update grunt tasks
  rename _template functions to _html
  move style block to external css file
  move html templates to abstract class
  rewrite search_field_scale to prevent CSP errors
  add Content-Security-Policy to html
  consider disabled fieldset for disabled state (harvesthq#2718)
  only prevent default on touchevents when results are not showing (harvesthq#2725)
  clip results instead of moving them (harvesthq#2727)
  prevent action on clipboard events when disabled (harvesthq#2722)
  prevent activating disabled fields (harvesthq#2721)
  always close on chosen:close event (harvesthq#2711)
  restore focus if chosen was activated (harvesthq#2710)
  Contributing: add grunt command for tests [ci-skip] (harvesthq#2700)
  do not clear search text on multi selection (harvesthq#2709)
  escape default text (harvesthq#2712)
  add white-space: pre for search field scaling (harvesthq#2714)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants