Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit f3b95ea

Browse files
author
Ann Heile
authored
Merge pull request #2023 from austin-rauschuber/fix-pillbox-double-insert-ie
Prevents pillbox double insert in IE 11/Edge 14
2 parents 8247f1b + ba4e60f commit f3b95ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/pillbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
// ignore comma and make sure text that has been entered (protects against " ,". https://github.com/ExactTarget/fuelux/issues/593), unless allowEmptyPills is true.
381381
if (text.replace(/[ ]*\,[ ]*/, '').match(/\S/) || (this.options.allowEmptyPills && text.length)) {
382382
this._closeSuggestions();
383-
this.$addItem.hide().val('');
383+
this.$addItem.val('').hide();
384384

385385
if (attr) {
386386
this.addItems({

0 commit comments

Comments
 (0)