Go back to default cursor when done resizing. (#1700)

Once we are done resizing (when inserting text) we now show the default
cursor.

Fixes #1699 

### Change Type

- [x] `patch` — Bug fix


### Test Plan

1. Select text tool
2. Insert a text shape by dragging to select it's size.
3. After you are done dragging the cursor should go back to the default
cursor.

### Release Notes

- Switch back to the default cursor after you are done inserting a new
text shape.
This commit is contained in:
Mitja Bezenšek 2023-07-05 16:06:46 +02:00 committed by GitHub
parent eba7b8c6a6
commit 090e148552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -344,6 +344,7 @@ export class Resizing extends StateNode {
}
onExit = () => {
this.editor.setCursor({ type: 'default' })
this.editor.snaps.clear()
}