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

fix(inline-link): link insertion in safari #2864

Merged
merged 2 commits into from
Nov 11, 2024
Merged

fix(inline-link): link insertion in safari #2864

merged 2 commits into from
Nov 11, 2024

Conversation

neSpecc
Copy link
Member

@neSpecc neSpecc commented Nov 8, 2024

Problem

Link insertion in Safari does not work

safari-link-bug.mov

Cause

Since #2758 we're checking all conteneditable elements for emptiness on each input event. Dom.isEmpty() contains .normalize() call which changes the DOM structure. The selection.restore() does not work then since this.savedSelectionRange is not attached to actual Dom now.

Solution

I have removed .normalize() call from .isEmpty() check. It is unexpected side effect for such method.

Resolves #2844
Resolves #2499

This PR is a patch for the latest stable version 2.30

@neSpecc neSpecc merged commit 597bde3 into v-2-30-6 Nov 11, 2024
4 checks passed
@neSpecc neSpecc deleted the v-2-30-7 branch November 11, 2024 19:44
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

Successfully merging this pull request may close these issues.

2 participants