-
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
Refactor FontSizePicker component. Fix bug on undo. #21757
Refactor FontSizePicker component. Fix bug on undo. #21757
Conversation
Size Change: -73 B (0%) Total Size: 816 kB
ℹ️ View Unchanged
|
It's an honor to have my name CCed instead of @draganescu but he opened the original issue 😄 |
Thank you @jorgefilipecosta I'll test and review this asap! |
b556704
to
2338b12
Compare
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.
This looks great. I tested and it fixes the problem, also making the font size picker a bit more robust and simple!
Also found #21975 while testing this. |
Description
Fixes: #19276
This PR refactors the FontSizePicker component and totally removes local state from the component, simplifying its code.
The PR ends up fixing issue #19276 which was caused by the fact the component contained local state that was not properly updated during an undo operation.
cc: @andreilupu
How has this been tested?
I verified font size picking still works as expected.
I repeated the steps referred on #19276 and verified the issue was not happening anymore.