Skip to content

Commit

Permalink
Merge pull request #11 from builtbylane/master
Browse files Browse the repository at this point in the history
selectordie.js: fix ipad bug (issue #8)
  • Loading branch information
vestman committed Sep 16, 2014
2 parents 74c5049 + 487d353 commit 72aded2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _src/selectordie.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@
$optionOptgroup = $clicked.hasClass("optgroup"),
$optionIndex = $sod.find(".sod_option:not('.optgroup')").index(this);

if ($sod.hasClass("touch")) {
return;
}

// If not disabled or optgroup
if ( !$optionDisabled && !$optionOptgroup ) {
$sod.find(".selected, .sod_placeholder").removeClass("selected sod_placeholder");
Expand Down

0 comments on commit 72aded2

Please sign in to comment.