From 01faae3ff7936e9b720f5af9c5a03facd8a20fe6 Mon Sep 17 00:00:00 2001 From: Ali Malrkpour Date: Mon, 16 Jul 2012 15:39:02 -0400 Subject: [PATCH] fix updateResults prevention if dropdown is closed --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 4ebd445a..1097df5a 100755 --- a/select2.js +++ b/select2.js @@ -965,7 +965,7 @@ var search = this.search, results = this.results, opts = this.opts, self=this; // if the search is currently hidden we do not alter the results - if (initial !== true && this.showSearchInput === false) { + if (initial !== true && (this.showSearchInput === false || !this.opened())) { return; }