Regression: Firefox selection by double click
k0ka opened this issue · comments
Konstantin Babushkin commented
Description
Selecting a block in Firefox via double click doesn't allow to remove formatting.
Recording
slateissues.mov
Steps
To reproduce the behavior:
- Go to https://www.slatejs.org/examples/richtext
- Double click on a word to select it.
- Click on the "bold" button.
- Deselect.
- Double click on the same word again to select it.
- Click on the "bold" button.
Expectation
The bold button must be active and the font must get to normal after clicking on the "bold" button again.
Environment
- Slate Version: 0.98.0, 0.98.4, 0.101.0
- Operating System: MacOS, Windows 10
- Browser: Firefox
Context
This bug was reintroduced in slate-react 0.98.0. It was working properly in slate-react 0.97.2
I think it is the same bug as #3336 (or #4793) which was fixed in #5275 and reintroduced in #5486
Théo Daron commented
+1 with slate version 0.101.1, firefox 120.0, linux
Joe Anderson commented
This can be closed as completed: #5580