[Bug]: Cursor is going away after a hard Break while loading editor within the shadow DOM environment in WebKit (Safari). #5026
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Info: Needs more info
The issue or pullrequest needs more information before it can be worked on
Info: Needs Reproduction
The issue or pullrequest needs a reproduction before it can be worked on
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
@tiptap/extension-hard-break
What Tiptap version are you using?
2.2.4
What’s the bug you are facing?
While loading the editor with hard break extension within the
shadow DOM
environment in WebKit (Safari), pressing Shift + Enter (HardBreak) causes the cursor to vanish.What browser are you using?
Safari
Code example
No response
What did you expect to happen?
The cursor should appear in the new line after the hard break.
Anything to add? (optional)
While using the editor in a WebKit environment and pressing Shift + Enter (Hard Break), an error was thrown in the console, as shown below:
Upon further investigation, it appears that the issue occurs in the
safariShadowSelectionRange
method within theProsemirror-view
package. This problem arises because thebeforeInput
event is not triggered, resulting in thefound
variable being left undefined.Without a shadow dom environment, it is working as expected.
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: