From e3751422f032dcba4273c85e3ccbfead2b1b703d Mon Sep 17 00:00:00 2001 From: Dawn Hammond Date: Mon, 28 Apr 2014 14:15:50 -0500 Subject: [PATCH] Fix focus issue when select-input has placeholder --- select2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/select2.js b/select2.js index 5525b1ea..8ff01902 100644 --- a/select2.js +++ b/select2.js @@ -2637,6 +2637,7 @@ the specific language governing permissions and limitations under the Apache Lic .attr('for', this.search.attr('id')); this.search.on("input paste", this.bind(function() { + if (this.search.attr('placeholder') && !this.search.val()) return; if (!this.isInterfaceEnabled()) return; if (!this.opened()) { this.open();