From 81a0e2610a1317580a98c7df39ffde0569765baa Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Tue, 5 Feb 2013 15:02:43 -0800 Subject: [PATCH] improve placeholder management. fixes #712 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index f78121d4..c6dae212 100644 --- a/select2.js +++ b/select2.js @@ -2020,7 +2020,7 @@ the specific language governing permissions and limitations under the Apache Lic this.search.bind("blur", this.bind(function(e) { this.container.removeClass("select2-container-active"); this.search.removeClass("select2-focused"); - this.clearSearch(); + if (!this.opened()) this.clearSearch(); e.stopImmediatePropagation(); }));