-
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
[RichText]: Ignore selection changes on non contentEditable nodes #40611
[RichText]: Ignore selection changes on non contentEditable nodes #40611
Conversation
Size Change: +12 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
Is this the same change I have in #40631 ? |
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.
Nice work tracking that one down @ntsekouras 👍 Thank you.
This tests as advertised and fixes #40358 for me.
Screen.Recording.2022-04-27.at.11.52.56.am.mp4
I cherry picked this change into |
What?
Fixes: #40358
We need to check if the implementor disabled editing because
contentEditable
does disable input, but not text selection, so we must ignore selection changes. This was removed in #38892, but I think it was an oversight.Testing Instructions
paragraph
blockScreenshots or screencast
Before
before.mov
After
after.mov
Notes
I'd like a sanity check here, as RichText is quite complex 😄