facebookarchive / draft-js

A React framework for building text editors.
https://draftjs.org/
MIT License
22.56k stars 2.64k forks source link

Ctrl+A selection doesn't work in Firefox when there are action items #3160

Open sdackovskij opened 1 year ago

sdackovskij commented 1 year ago

Do you want to request a feature or report a bug?

Report a bug

What is the current behavior?

In Firefox browser impossible to use Ctrl+A with Action item in text editor field. Selection just blinks and disappears. In Chrome Ctrl+A works correct.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Create some action items in text editor
  2. Click Ctrl+A from keyboard
  3. Observe result

https://user-images.githubusercontent.com/41028149/183658740-7d729d46-2fd8-4134-bb15-3f0367646c96.mp4

What is the expected behavior?

When user press CTRL + A it works like in Chrome.

https://user-images.githubusercontent.com/41028149/183658924-db28a762-1c00-42ef-8177-8df8422b11d4.mp4

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

Draft-JS: "0.11.7", Browser: Firefox (v. 103.0.1)