udecode / plate

A rich-text editor powered by AI
https://platejs.org
Other
12k stars 733 forks source link

[P-184] Cannot toggle marks (bold etc) in Firefox, for a word selected by double clicking #1987

Closed mz8i closed 1 year ago

mz8i commented 2 years ago

Description

Just evaluating Plate and I stumbled upon a rather problematic issue using Firefox. This actually occurs in the official examples.

In the Balloon Toolbar, when you double click a word to select and toggle bold on it, then later it's not possible to toggle bold on the word if you double-click it again.

Steps

Notes:

Expectation

You can select a word by double clicking, toggle a mark (like bold, italic etc) on it, then move away, and then when you double click the word again, the bold status should be correctly shown and it should be possible to toggle it off again. Dragging to select requires more precision than double clicking, and therefore is much slower - so it's not acceptable for this to be the required action.

Environment

Thanks for looking into this! I'm keen to use the framework but this is a major obstacle given the UX degradation for Firefox users.

P-184

Funding

Fund with Polar

dylans commented 2 years ago

This is definitely a regression as it used to work as you would expect. I can confirm it's an issue (and not an OS related quirk).

O4epegb commented 2 years ago

Can confirm too, happens only in Firefox on macos too

mmourafiq commented 2 years ago

probably related to #1897