We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 247223a commit 1f09c7aCopy full SHA for 1f09c7a
1 file changed
select2.js
@@ -1,4 +1,4 @@
1
-/*
+/*
2
Copyright 2012 Igor Vaynberg
3
4
Version: @@ver@@ Timestamp: @@timestamp@@
@@ -2057,7 +2057,8 @@ the specific language governing permissions and limitations under the Apache Lic
2057
2058
isPlaceholderOptionSelected: function() {
2059
var placeholderOption;
2060
- return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected')) ||
+ return this.opts.placeholder &&
2061
+ ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected')) ||
2062
(this.opts.element.val() === "") ||
2063
(this.opts.element.val() === undefined) ||
2064
(this.opts.element.val() === null);
0 commit comments