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

Prevents pillbox double insert in IE 11/Edge 14 #2023

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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