mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-09 18:42:49 +08:00
fix: revert async focus, fix #1658
This commit is contained in:
parent
040a539f0f
commit
c9869c8d30
@ -73,14 +73,8 @@ export const focus: RawCommands['focus'] = (position = null) => ({
|
||||
tr.setStoredMarks(storedMarks)
|
||||
}
|
||||
|
||||
// focus async because in some situations weird things happen
|
||||
// see: https://github.com/ueberdosis/tiptap/issues/1520
|
||||
setTimeout(() => {
|
||||
if (!editor.isDestroyed) {
|
||||
view.focus()
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user