1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Allow an empty string to be used as the placeholder title.

This commit is contained in:
David Foster 2014-04-01 14:22:41 -07:00
parent df7b7ba95c
commit 3ce3ad7fb0

View File

@ -2219,7 +2219,7 @@ the specific language governing permissions and limitations under the Apache Lic
isPlaceholderOptionSelected: function() { isPlaceholderOptionSelected: function() {
var placeholderOption; var placeholderOption;
if (!this.getPlaceholder()) return false; // no placeholder specified so no option should be considered if (this.getPlaceholder() === undefined) return false; // no placeholder specified so no option should be considered
return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.prop("selected")) return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.prop("selected"))
|| (this.opts.element.val() === "") || (this.opts.element.val() === "")
|| (this.opts.element.val() === undefined) || (this.opts.element.val() === undefined)