From c8cae0a6c9ad438a5af41de9bab2717f36d49d26 Mon Sep 17 00:00:00 2001 From: norlin Date: Fri, 22 Mar 2013 10:14:39 +0400 Subject: [PATCH] fix initSelection with empty input value --- select2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/select2.js b/select2.js index ac542afc..e690f773 100644 --- a/select2.js +++ b/select2.js @@ -1805,6 +1805,7 @@ the specific language governing permissions and limitations under the Apache Lic initSelection: function () { var selected; if (this.opts.element.val() === "" && this.opts.element.text() === "") { + this.updateSelection([]); this.close(); this.setPlaceholder(); } else {