diff --git a/packages/bbui/src/Form/Core/Picker.svelte b/packages/bbui/src/Form/Core/Picker.svelte index 0221c0fbdd..87f2e1c130 100644 --- a/packages/bbui/src/Form/Core/Picker.svelte +++ b/packages/bbui/src/Form/Core/Picker.svelte @@ -17,7 +17,8 @@ TooltipType, } from "../../Tooltip/AbsTooltip.svelte" import ContextTooltip from "../../Tooltip/Context.svelte" - import { fade } from 'svelte/transition'; + import { Heading } from "@budibase/bbui" + export let id = null @@ -119,7 +120,7 @@ component?.removeEventListener("scroll", null) }) - const handleMouseenter = (e, option) => { + const handleMouseenter = (e, option, idx) => { contextTooltipId += 1; const invokedContextTooltipId = contextTooltipId @@ -230,8 +231,8 @@ {#if filteredOptions.length} {#each filteredOptions as option, idx}
  • handleMouseenter(e, option)} - on:mouseleave={(e) => handleMouseleave(e, option)} + on:mouseenter={(e) => handleMouseenter(e, option, idx)} + on:mouseleave={(e) => handleMouseleave(e, option, idx)} class="spectrum-Menu-item" class:is-selected={isOptionSelected(getOptionValue(option, idx))} role="option" @@ -303,27 +304,42 @@ visible={contextTooltipVisible} anchor={contextTooltipAnchor} > -
    - {contextTooltipOption} -
    -
    - {previousContextTooltipOption} -
    +
    + {#if contextTooltipOption} + + {contextTooltipOption} + {/if} +
    +
    + {#if previousContextTooltipOption} + + {previousContextTooltipOption} + {/if} +