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

Fix font color picker not working properly on first change on Chrome #17109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mati365
Copy link
Member

@Mati365 Mati365 commented Sep 17, 2024

Suggested merge commit message (convention)

Fix (ui): Fixed an issue where the first selected color was applied instead of the second selected color when using the font color picker for the first time after loading the page. Closes #17069


Additional information

It looks like selection handling between normal DOM elements and web-components is asynchronous in some ways. In this case, it looks like immediately setting color and debounced firing colorSelected fixes the issue as the browser releases selection from web-component with small delay.

Before

before-picker-fix-2024-09-18_07.50.43.mp4

After

after-picker-fix-2024-09-18_07.48.13.mp4

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.

Font color picker not working properly on first change
1 participant