From 3c03ef2af768a48bad0d91c0b024a4979c45937e Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 7 Mar 2024 14:02:54 +0100 Subject: [PATCH] Handle events --- packages/bbui/src/Icon/IconAvatar.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bbui/src/Icon/IconAvatar.svelte b/packages/bbui/src/Icon/IconAvatar.svelte index 41c62384a1..b046e4dfd5 100644 --- a/packages/bbui/src/Icon/IconAvatar.svelte +++ b/packages/bbui/src/Icon/IconAvatar.svelte @@ -20,8 +20,9 @@ style="background: {background || `transparent`};" class:filled={!!background} on:mouseover={() => (showTooltip = true)} - on:focus={() => (showTooltip = true)} on:mouseleave={() => (showTooltip = false)} + on:focus={() => (showTooltip = true)} + on:blur={() => (showTooltip = false)} on:click={() => (showTooltip = false)} >