1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

focus input when popover opens

This commit is contained in:
Peter Clement 2023-08-11 12:00:33 +01:00
parent f7c1db5926
commit 6b75a653f8

View file

@ -96,7 +96,6 @@
} else {
editableColumn.name = "Column 01"
}
focus = true
}
allowedTypes = getAllowedTypes()
}
@ -419,20 +418,18 @@
onMount(() => {
mounted = true
})
$: console.log(editableColumn.name)
</script>
<Layout noPadding gap="S">
{#if mounted}
<Input
autofocus
bind:value={editableColumn.name}
disabled={uneditable ||
(linkEditDisabled && editableColumn.type === LINK_TYPE)}
error={errors?.name}
/>
{/if}
autofocus
bind:value={editableColumn.name}
disabled={uneditable ||
(linkEditDisabled && editableColumn.type === LINK_TYPE)}
error={errors?.name}
/>
{/if}
<Select
disabled={!typeEnabled}
bind:value={editableColumn.type}