Skip to content

Commit

Permalink
Fixing issue vestman#21: placeholderOption & placeholder breaks SOD o…
Browse files Browse the repository at this point in the history
…n mobile devices
  • Loading branch information
jherencia committed Jun 26, 2015
1 parent 501d730 commit 4e0b444
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion _src/selectordie.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*
* Oddny | Cogs 'n Kegs
*
* @preserve
*
* =========================================================== */

; (function ($) {
Expand Down Expand Up @@ -470,7 +472,7 @@
$optionSelected.addClass("active");
}

if ( !$optionHasChanged && $sodPlaceholder ) {
if ( !$optionHasChanged && $sodPlaceholder && !$sod.hasClass('touch') ) {
$sod.find(".sod_label").get(0).lastChild.nodeValue = $optionSelected.text();
} else if ( !$optionHasChanged ) {
$sod.find(".sod_label").get(0).lastChild.nodeValue = $sodLabel;
Expand Down
13 changes: 8 additions & 5 deletions _src/selectordie.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e0b444

Please sign in to comment.