Skip to content

Commit 38b9e93

Browse files
committed
do not hide search field when disabled because it also hides the placeholder. fixes select2#272
1 parent ab1a8b9 commit 38b9e93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@
17001700

17011701
this.parent.enable.apply(this, arguments);
17021702

1703-
this.search.show();
1703+
this.search.removeAttr("disabled");
17041704
},
17051705

17061706
// multi
@@ -1709,7 +1709,7 @@
17091709

17101710
this.parent.disable.apply(this, arguments);
17111711

1712-
this.search.hide();
1712+
this.search.attr("disabled", true);
17131713
},
17141714

17151715
// multi

0 commit comments

Comments
 (0)