Skip to content

Commit c73261b

Browse files
committed
Merge pull request select2#1723 from AlexanderZaytsev/master
Use more specific selector for finding options of a select
2 parents 84ac830 + 6769974 commit c73261b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@ the specific language governing permissions and limitations under the Apache Lic
17081708
// abstract
17091709
getPlaceholderOption: function() {
17101710
if (this.select) {
1711-
var firstOption = this.select.children().first();
1711+
var firstOption = this.select.children('option').first();
17121712
if (this.opts.placeholderOption !== undefined ) {
17131713
//Determine the placeholder option based on the specified placeholderOption setting
17141714
return (this.opts.placeholderOption === "first" && firstOption) ||

0 commit comments

Comments
 (0)