1
0
mirror of synced 2025-02-16 20:13:16 +03:00

Merge pull request #1723 from AlexanderZaytsev/master

Use more specific selector for finding options of a select
This commit is contained in:
Igor Vaynberg 2013-09-17 07:14:50 -07:00
commit c73261be21

View File

@ -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) ||