Open aaaanilkumar opened 2 months ago
It happens because selection
is updated by clicking the text with black color when closing the dropdown:
selection
updates to have style of red color properlyhttps://github.com/user-attachments/assets/fae9abc2-afef-48fe-876f-feb1a43d2e28
So this can happen on other case as well such as font size. But in this case, it doesn't feel like a bug (at least for me). IMO, it is because there is no dropdown. So it is natural to continue writing without selecting the last text.
https://github.com/user-attachments/assets/e9140f2a-be89-4088-87de-16b0c381c681
So closing dropdown by click preserving the selection could be a fix.
The user can't set the text color if the color pallet is closed. On the other hand, it works fine if the pallet is not closed.
Lexical version: latest
Steps To Reproduce
Tab-1723604081401.webm
Link to code example: https://playground.lexical.dev/
The current behavior is text color is not applied.
The expected behavior should be text color applied.