some tidy up
This commit is contained in:
parent
094881e807
commit
e14bf007db
|
@ -9,7 +9,7 @@
|
|||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
export let anchor: any | undefined = undefined
|
||||
export let anchor: HTMLElement | undefined = undefined
|
||||
export let align: string | undefined = "right"
|
||||
export let portalTarget: any | undefined = undefined
|
||||
export let minWidth: number | undefined = undefined
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
return componentsUsingState
|
||||
}
|
||||
|
||||
function handleKeySelect(event: CustomEvent) {
|
||||
function handleStateKeySelect(event: CustomEvent) {
|
||||
selectedKey = event.detail
|
||||
if (!selectedKey) {
|
||||
throw new Error("No state key selected")
|
||||
|
@ -106,7 +106,7 @@
|
|||
<Combobox
|
||||
value={selectedKey}
|
||||
options={keyOptions}
|
||||
on:change={handleKeySelect}
|
||||
on:change={handleStateKeySelect}
|
||||
/>
|
||||
{#if componentsUsingState.length > 0}
|
||||
<div class="components-list">
|
||||
|
|
Loading…
Reference in New Issue