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