Skip to content

Commit

Permalink
Dispatch close event explicitly (themesberg#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoextra authored Sep 3, 2023
1 parent c09d831 commit 876c193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/badges/Badge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
let open = true;
const dispatch = createEventDispatcher();
$: dispatch(open ? 'open' : 'close');
const close = (e: MouseEvent) => {
e.stopPropagation();
open = false;
dispatch('close');
};
</script>

Expand Down

0 comments on commit 876c193

Please sign in to comment.