From 67699746b4fed4bc94688abb723cdfc3e62ddbd0 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Mon, 16 Sep 2013 21:54:29 +0200 Subject: [PATCH] Use more specific selector for finding options of a select --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 8345f134..4527d032 100644 --- a/select2.js +++ b/select2.js @@ -1708,7 +1708,7 @@ the specific language governing permissions and limitations under the Apache Lic // abstract getPlaceholderOption: function() { if (this.select) { - var firstOption = this.select.children().first(); + var firstOption = this.select.children('option').first(); if (this.opts.placeholderOption !== undefined ) { //Determine the placeholder option based on the specified placeholderOption setting return (this.opts.placeholderOption === "first" && firstOption) ||