Skip to content

Commit 01faae3

Browse files
committed
fix updateResults prevention if dropdown is closed
1 parent 3ed2cc0 commit 01faae3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@
965965
var search = this.search, results = this.results, opts = this.opts, self=this;
966966

967967
// if the search is currently hidden we do not alter the results
968-
if (initial !== true && this.showSearchInput === false) {
968+
if (initial !== true && (this.showSearchInput === false || !this.opened())) {
969969
return;
970970
}
971971

0 commit comments

Comments
 (0)