Skip to content

Commit c4529b8

Browse files
committed
fix missing placeholder. closes select2#1614
1 parent 236fb0e commit c4529b8

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
@@ -2084,7 +2084,7 @@ the specific language governing permissions and limitations under the Apache Lic
20842084

20852085
isPlaceholderOptionSelected: function() {
20862086
var placeholderOption;
2087-
if (!this.opts.placeholder) return false; // no placeholder specified so no option should be considered
2087+
if (!this.getPlaceholder()) return false; // no placeholder specified so no option should be considered
20882088
return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected'))
20892089
|| (this.opts.element.val() === "")
20902090
|| (this.opts.element.val() === undefined)

0 commit comments

Comments
 (0)