Skip to content

Commit 968482b

Browse files
committed
Fix: remove class active on removing item
1 parent 3a79181 commit 968482b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/selectize.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,8 @@ $.extend(Selectize.prototype, {
16661666
if (i !== -1) {
16671667
self.trigger('item_before_remove', value, $item);
16681668
$item.remove();
1669-
if ($item.hasClass('active')) {
1669+
if ($item.hasClass('active')) {
1670+
$item.removeClass('active');
16701671
idx = self.$activeItems.indexOf($item[0]);
16711672
self.$activeItems.splice(idx, 1);
16721673
}

0 commit comments

Comments
 (0)