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

Commit

Permalink
Merge pull request #2023 from austin-rauschuber/fix-pillbox-double-in…
Browse files Browse the repository at this point in the history
…sert-ie

Prevents pillbox double insert in IE 11/Edge 14
  • Loading branch information
Ann Heile authored Oct 24, 2017
2 parents 8247f1b + ba4e60f commit f3b95ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/pillbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
// ignore comma and make sure text that has been entered (protects against " ,". https://github.com/ExactTarget/fuelux/issues/593), unless allowEmptyPills is true.
if (text.replace(/[ ]*\,[ ]*/, '').match(/\S/) || (this.options.allowEmptyPills && text.length)) {
this._closeSuggestions();
this.$addItem.hide().val('');
this.$addItem.val('').hide();

if (attr) {
this.addItems({
Expand Down

0 comments on commit f3b95ea

Please sign in to comment.