-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Partial select: fix selecting into image #42983
Conversation
Size Change: +3.34 kB (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd encourage a sanity check as this isn't code I've looked at much. But it works well, it's not a ton of code, and looks good. You can land this if you have good confidence 👍 👍
Thanks again.
6a1e470
to
c202090
Compare
I added an e2e test for the Separator, which suffers from the same issue an is a bit easier to test. |
What?
When checking the native selection, we're not correctly extracting the start/end element.
Why?
Partial multi select over image is broken.
How?
Corrects selected element extraction of native selection.
Testing Instructions
Create a paragraph and insert an image after it. Try to select from the paragraph into the image by dragging. The image is not selected until moving the selection after the image.
Screenshots or screencast