Merge pull request #444 from kevin-brown/master
Fixes 424: Improved Placeholder Detection
This commit is contained in:
commit
0c11ed7a9c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user