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