Auto-Focus New Elements in List Input (Tags)

This commit is contained in:
Neshura 2023-11-15 23:54:06 +01:00
parent cce3338dc9
commit 87d703abe4
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -15,7 +15,7 @@
}
</script>
<input id="tag-{id}" type="text" class="letterInput" style="--valuelen: {width}ch" bind:value={value}>
<input id="tag-{id}" type="text" class="letterInput" style="--valuelen: {width}ch" bind:value={value} autofocus>
<button on:click|preventDefault={handleClick}>X</button>
<style>