[Bug]: commands.focus() triggers blur #5992
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
core
Version(s)
2.11.0
Bug Description
After upgrading to 2.11.0, calling
editor.commands.focus()
triggers a focus and blur event in short successionBrowser Used
Chrome
Code Example URL
https://codesandbox.io/p/sandbox/friendly-paper-wzyqyg
Expected Behavior
Blur should not fire
Additional Context (Optional)
I'm positive this issue is caused by this PR which changes how focus is triggered - in fact, commenting out that line of code fixes the issue for me
Dependency Updates
The text was updated successfully, but these errors were encountered: