facebookarchive / draft-js

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

InvalidStateError: 'extend' requires a Range to be added to the Selection #3181

Open jeyashree-n opened 1 year ago

jeyashree-n commented 1 year ago

Do you want to request a feature or report a bug? Most probably a bug.

Current behavior: We are facing an issue while trying to focus on a selection. It is happening in some browsers and in some cases. But we are able to reproduce the issue on "safari" version 16.1.

DraftJS version: 0.10.5

While it failed to focus, componentDidUpdate is continuously called and ends up with "Maximum update depth exceeded."

While we remove the focus it is working fine.

Screenshot 2022-12-12 at 11 23 24 PM
jeyashree-n commented 1 year ago

If any one faced this issue ?