From 6e65ef39e7ff9a3c0ee25b7945a62584e9b7441e Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Tue, 4 Feb 2025 14:28:58 -0800 Subject: [PATCH] fix(tag): allow `on:close` to work with Svelte 5 (#2097) Fixes #2096 --- src/Tag/Tag.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tag/Tag.svelte b/src/Tag/Tag.svelte index 9d912a5a..f5bb2952 100644 --- a/src/Tag/Tag.svelte +++ b/src/Tag/Tag.svelte @@ -82,7 +82,7 @@ class:bx--tag__close-icon={true} {disabled} {title} - on:click|stopPropagation + on:click on:click|stopPropagation={() => { dispatch("close"); }}