Permalink
Browse files

Merge pull request #1 from simmerdesign/master

Chosen would fail when being applied to a disabled <select>
  • Loading branch information...
2 parents 5d8f803 + 1bdbaa0 commit 735143fd4c06289f967952a2820999be914022aa @redking committed Mar 29, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 Chosen.js
View
4 Chosen.js
@@ -771,7 +771,7 @@ define(["dojo/_base/declare",
domClass.add(this.container, 'chzn-disabled');
domAttr.set(this.search_field, 'disabled', true);
if(!this.is_multiple) {
- if(!this.selected_item_focus_handle) {
+ if(this.selected_item_focus_handle) {
this.selected_item_focus_handle.remove();
}
}
@@ -949,4 +949,4 @@ define(["dojo/_base/declare",
}
return Chosen;
-});
+});

0 comments on commit 735143f

Please sign in to comment.