Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Prosemirror-view safariShadowSelectionRange - Error after hardbreak when loading editor within shadow root environment in webkit (Safari) #1454

Open
aagash-ni opened this issue Apr 3, 2024 · 1 comment

Comments

@aagash-ni
Copy link

aagash-ni commented Apr 3, 2024

I'm encountering an issue while using ProseMirror within the shadow root environment in Safari. It appears there's a malfunction occurring when executing a hard break (Shift + Enter) within the safariShadowSelectionRange method. This is due to the beforeinput method not being emitted, resulting in the found variable becoming undefined.

Actual Result:
The cursor vanishes and there is some uncertainty in the selection.

Expected Result:
There should be no disruption in the code, and the cursor selection should function as expected.

image

image

Related impact:
ueberdosis/tiptap#5026

Without the shadow DOM, it functions as expected.

@marijnh
Copy link
Member

marijnh commented Apr 8, 2024

Could you check if prosemirror-view 133.4 solves this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants