Applying styles to entire block does not work the first time around
morgan-tr opened this issue · 0 comments
morgan-tr commented
When an entire "block" is selected and then a style is applied (e.g. making the block bold or in italics), the entire block is deselected and the style does not apply. It only works the second time around.
Reproduction steps:
- Go to this Code Sandbox example
- Type some text
- Select the entire text
- Click the Bold button in the toolbar
- Note that the text is deselected and no style is applied
- Select the same text again
- Click the Bold button in the toolbar again
- Note that now the bold style applies
Expected behaviour
The bold style should apply the first time the Bold button is clicked.
Please note that the Bold button works fine if only part of the block is selected. It's only when an entire block is selected that the style need to be applied twice to take effect.
This happens on both version 1.29.0
and version ^2.0.0
.