We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 236fb0e commit c4529b8Copy full SHA for c4529b8
1 file changed
select2.js
@@ -2084,7 +2084,7 @@ the specific language governing permissions and limitations under the Apache Lic
2084
2085
isPlaceholderOptionSelected: function() {
2086
var placeholderOption;
2087
- if (!this.opts.placeholder) return false; // no placeholder specified so no option should be considered
+ if (!this.getPlaceholder()) return false; // no placeholder specified so no option should be considered
2088
return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected'))
2089
|| (this.opts.element.val() === "")
2090
|| (this.opts.element.val() === undefined)
0 commit comments