We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84ac830 + 6769974 commit c73261bCopy full SHA for c73261b
1 file changed
select2.js
@@ -1708,7 +1708,7 @@ the specific language governing permissions and limitations under the Apache Lic
1708
// abstract
1709
getPlaceholderOption: function() {
1710
if (this.select) {
1711
- var firstOption = this.select.children().first();
+ var firstOption = this.select.children('option').first();
1712
if (this.opts.placeholderOption !== undefined ) {
1713
//Determine the placeholder option based on the specified placeholderOption setting
1714
return (this.opts.placeholderOption === "first" && firstOption) ||
0 commit comments