some tidy up

This commit is contained in:
Peter Clement 2025-01-16 08:59:04 +00:00
parent 094881e807
commit e14bf007db
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
export let anchor: any | undefined = undefined export let anchor: HTMLElement | undefined = undefined
export let align: string | undefined = "right" export let align: string | undefined = "right"
export let portalTarget: any | undefined = undefined export let portalTarget: any | undefined = undefined
export let minWidth: number | undefined = undefined export let minWidth: number | undefined = undefined

View File

@ -73,7 +73,7 @@
return componentsUsingState return componentsUsingState
} }
function handleKeySelect(event: CustomEvent) { function handleStateKeySelect(event: CustomEvent) {
selectedKey = event.detail selectedKey = event.detail
if (!selectedKey) { if (!selectedKey) {
throw new Error("No state key selected") throw new Error("No state key selected")
@ -106,7 +106,7 @@
<Combobox <Combobox
value={selectedKey} value={selectedKey}
options={keyOptions} options={keyOptions}
on:change={handleKeySelect} on:change={handleStateKeySelect}
/> />
{#if componentsUsingState.length > 0} {#if componentsUsingState.length > 0}
<div class="components-list"> <div class="components-list">