1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Fixed placeholder detection. Fixes #424.

This commit is contained in:
Kevin Brown 2012-09-24 18:35:13 -03:00
parent 6351f2544f
commit c4c1cbabde

View File

@ -1587,7 +1587,7 @@
// single
initSelection: function () {
var selected;
if (this.opts.element.val() === "") {
if (this.opts.element.val() === "" && this.opts.element.text() === "") {
this.close();
this.setPlaceholder();
} else {
@ -1921,7 +1921,7 @@
// multi
initSelection: function () {
var data;
if (this.opts.element.val() === "") {
if (this.opts.element.val() === "" && this.opts.element.text() === "") {
this.updateSelection([]);
this.close();
// set the placeholder if necessary