From b5aa4688eac07486f441bcf7962324a8787c8c2b Mon Sep 17 00:00:00 2001 From: Alek Storm Date: Sun, 24 Nov 2013 22:26:13 -0800 Subject: [PATCH] Fix dropdown items not being reset after filtering and selecting when closeOnSelect is false --- select2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/select2.js b/select2.js index 9cd97cf5..d3222daa 100644 --- a/select2.js +++ b/select2.js @@ -2786,6 +2786,9 @@ the specific language governing permissions and limitations under the Apache Lic this.opts.element.trigger({ type: "selected", val: this.id(data), choice: data }); + this.clearSearch(); + this.updateResults(); + if (this.select || !this.opts.closeOnSelect) this.postprocessResults(data, false, this.opts.closeOnSelect===true); if (this.opts.closeOnSelect) {