From 16598f485e2bc96563d05c5ad601f5ab6134500e Mon Sep 17 00:00:00 2001 From: Zeyad Obaia Date: Sun, 21 Jul 2024 10:11:17 +0200 Subject: [PATCH] fire change event when the tag close icon is clicked and item is removed --- src/plugins/select/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/select/index.ts b/src/plugins/select/index.ts index ff92ddd..b38bfc9 100644 --- a/src/plugins/select/index.ts +++ b/src/plugins/select/index.ts @@ -364,6 +364,8 @@ class HSSelect extends HSBasePlugin implements ISelect { this.selectMultipleItems(); newItem.remove(); + this.fireEvent('change', this.value); + dispatch('change.hs.select', this.el, this.value); }); this.wrapper.append(newItem);