1
0
mirror of synced 2024-11-30 00:26:03 +03:00

Merge pull request #1073 from norlin/master

Fix initSelection method with empty input value
This commit is contained in:
Igor Vaynberg 2013-04-10 08:22:10 -07:00
commit 92e2c6d56f

View File

@ -1863,6 +1863,7 @@ the specific language governing permissions and limitations under the Apache Lic
initSelection: function () {
var selected;
if (this.opts.element.val() === "" && this.opts.element.text() === "") {
this.updateSelection([]);
this.close();
this.setPlaceholder();
} else {