From 2c47b9447a7493785a57013350821be762fbfbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 16 Aug 2023 09:40:20 +0300 Subject: [PATCH] Refactor #4274 - For MultiSelect --- components/lib/multiselect/MultiSelect.d.ts | 10 ++++++++-- components/lib/multiselect/MultiSelect.vue | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/lib/multiselect/MultiSelect.d.ts b/components/lib/multiselect/MultiSelect.d.ts index 678e874af..a75975832 100755 --- a/components/lib/multiselect/MultiSelect.d.ts +++ b/components/lib/multiselect/MultiSelect.d.ts @@ -659,9 +659,15 @@ export interface MultiSelectSlots { */ class: string; /** - * Remove token icon function. + * Item of the token. */ - onClick: void; + item: any; + /** + * Remove token icon function. + * @param {Event} event - Browser event + * @param {any} item - Item + */ + onClick(event: Event, item: any): void; }): VNode[]; /** * Custom header checkbox icon template. diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index f4c61f9ec..fc017af66 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -33,7 +33,7 @@ {{ getLabelByValue(item) }} - +