Auto-Focus New Elements in List Input (Tags)
This commit is contained in:
parent
cce3338dc9
commit
87d703abe4
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</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>
|
<button on:click|preventDefault={handleClick}>X</button>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Reference in a new issue