Fixes text selection on touch devices.
This commit is contained in:
parent
e9d070f354
commit
55ecec9e7b
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ const text = registerShapeUtils<TextShape>({
|
|||
setTimeout(() => state.send('BLURRED_EDITING_SHAPE', { id }), 0)
|
||||
}
|
||||
|
||||
function handleFocus() {
|
||||
function handleFocus(e: React.FocusEvent<HTMLTextAreaElement>) {
|
||||
e.currentTarget.select()
|
||||
state.send('FOCUSED_EDITING_SHAPE', { id })
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue