diff --git a/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte b/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte index f20dac2776..07ddc5a786 100644 --- a/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte +++ b/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte @@ -52,8 +52,7 @@ menuOpen = false; }; - const openMenu = (event: Event) => { - event.stopPropagation(); + const openMenu = () => { menuOpen = true; }; @@ -201,7 +200,7 @@ aria-expanded={menuOpen} class="f-between-center w-full h-full px-[20px] py-[14px] input-box bg-neutral-background border-0 shadow-none outline-none {combined ? '!rounded-l-[0px] !rounded-r-[10px]' : '!rounded-[10px]'}" - on:click={openMenu}> + on:click|stopPropagation={openMenu}>
{#if !value || disabled} {$t('token_dropdown.label')} diff --git a/packages/bridge-ui/src/components/Tooltip/Tooltip.svelte b/packages/bridge-ui/src/components/Tooltip/Tooltip.svelte index 241120ba93..644ce3e0a7 100644 --- a/packages/bridge-ui/src/components/Tooltip/Tooltip.svelte +++ b/packages/bridge-ui/src/components/Tooltip/Tooltip.svelte @@ -23,8 +23,7 @@ }, ms); } - function openTooltip(event: Event) { - event.stopPropagation(); + function openTooltip() { tooltipOpen = true; } @@ -45,8 +44,8 @@ aria-haspopup="dialog" aria-controls={tooltipId} aria-expanded={tooltipOpen} - on:click={openTooltip} - on:focus={openTooltip} + on:click|stopPropagation={openTooltip} + on:focus|stopPropagation={openTooltip} on:mouseenter={openTooltip} bind:this={triggerElem}> diff --git a/packages/bridge-ui/src/components/Transactions/MobileDetailsDialog.svelte b/packages/bridge-ui/src/components/Transactions/MobileDetailsDialog.svelte index 74eaafa5ed..267191bd8b 100644 --- a/packages/bridge-ui/src/components/Transactions/MobileDetailsDialog.svelte +++ b/packages/bridge-ui/src/components/Transactions/MobileDetailsDialog.svelte @@ -31,8 +31,7 @@ let openStatusDialog = false; let tooltipOpen = false; - const openToolTip = (event: Event) => { - event.stopPropagation(); + const openToolTip = () => { tooltipOpen = !tooltipOpen; }; let dialogId = `dialog-${uid()}`; @@ -119,7 +118,7 @@
  • -
    - - - -
    + + +