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

Ensure selection is definitely collapsed - fixes Blink Shadow DOM bug #7

Merged
merged 1 commit into from
Mar 20, 2017
Merged

Ensure selection is definitely collapsed - fixes Blink Shadow DOM bug #7

merged 1 commit into from
Mar 20, 2017

Conversation

bedeoverend
Copy link
Contributor

This checks that a selection's ranges are all collapsed instead of just relying on the isCollapsed property. This can occur in both v0 and v1 Shadow DOM implementations in Chrome - see this Blink bug.

Fixes this issue

@marijnh marijnh merged commit 6e3d72c into ProseMirror:master Mar 20, 2017
@marijnh
Copy link
Member

marijnh commented Mar 20, 2017

Thanks! Merged and followed up with 1d6df3e (since browser don't actually support multiple selections, checking range 0 is enough).

@bedeoverend
Copy link
Contributor Author

@marijnh yeah I didn't quite know what the deal was with multiple ranges - thanks for clearing that up :)

@bedeoverend bedeoverend deleted the fix-shadow branch April 10, 2017 05:32
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