Skip to content

Commit

Permalink
Merge pull request #411 from ZedObaia/fix-252-fire-change-event-on-ta…
Browse files Browse the repository at this point in the history
…g-close-click

fixes #252 fire change event when the tag close icon is clicked and item is removed
  • Loading branch information
olegpix authored Oct 14, 2024
2 parents ec4b62d + 16598f4 commit 878d7f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ class HSSelect extends HSBasePlugin<ISelectOptions> implements ISelect {
this.selectMultipleItems();

newItem.remove();
this.fireEvent('change', this.value);
dispatch('change.hs.select', this.el, this.value);
});

this.wrapper.append(newItem);
Expand Down

0 comments on commit 878d7f3

Please sign in to comment.