-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Clone objects from the CSS cache before mutating them #3945
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ef4cecd
to
73b62be
Compare
After posting this, I was thinking I might try to drop the change to |
Fixes facebook#3944. This patch also fixes a bug in $getSelectionStyleValueForProperty that was papered over by this bug--namely that when it is called on a collapsed selection we should report the style on the selection regardless of whether it agrees with the current node style.
73b62be
to
7dca3bd
Compare
This is ready for review now. I reverted the change to Also, I haven't updated the return type of |
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.
LGTM, but can we make one change to avoid having to ship this as a breaking change.
Fixes #3944.
This patch also fixes a bug in $getSelectionStyleValueForProperty that
was papered over by this bug--namely that when it is called on
a collapsed selection we should report the style on the selection
regardless of whether it agrees with the current node style.