Merge pull request #1073 from norlin/master
Fix initSelection method with empty input value
This commit is contained in:
commit
92e2c6d56f
@ -1863,6 +1863,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
initSelection: function () {
|
initSelection: function () {
|
||||||
var selected;
|
var selected;
|
||||||
if (this.opts.element.val() === "" && this.opts.element.text() === "") {
|
if (this.opts.element.val() === "" && this.opts.element.text() === "") {
|
||||||
|
this.updateSelection([]);
|
||||||
this.close();
|
this.close();
|
||||||
this.setPlaceholder();
|
this.setPlaceholder();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user