typing issue

This commit is contained in:
Peter Clement 2025-01-29 12:00:33 +00:00
parent 9d217e8201
commit bf2b5a5152
1 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,7 @@
import { createEventDispatcher } from "svelte"
import clickOutside from "../../Actions/click_outside"
import Popover from "../../Popover/Popover.svelte"
import { PopoverAlignment } from "../../constants"
export let value: string | undefined = undefined
export let id: string | undefined = undefined
@ -97,11 +98,16 @@
<Popover
{anchor}
{open}
align="left"
align={PopoverAlignment.Left}
on:close={() => (open = false)}
useAnchorWidth
>
<div class="popover-content" use:clickOutside={() => (open = false)}>
<div
class="popover-content"
use:clickOutside={() => {
open = false
}}
>
<ul class="spectrum-Menu" role="listbox">
{#if options && Array.isArray(options)}
{#each options as option}