Ensure button is focused when starting to edit text
This commit is contained in:
parent
d13170ff57
commit
e5f49c87f6
|
@ -35,9 +35,9 @@
|
||||||
{disabled}
|
{disabled}
|
||||||
use:styleable={$component.styles}
|
use:styleable={$component.styles}
|
||||||
on:click={onClick}
|
on:click={onClick}
|
||||||
class:editing={$component.editing}
|
|
||||||
contenteditable={$component.editing}
|
contenteditable={$component.editing}
|
||||||
on:blur={$component.editing ? updateText : null}
|
on:blur={$component.editing ? updateText : null}
|
||||||
|
bind:this={node}
|
||||||
>
|
>
|
||||||
{componentText}
|
{componentText}
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue