facebookarchive / draft-js

A React framework for building text editors.

Home Page:https://draftjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jeyashree-n opened this issue · comments

commented

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

commented

If any one faced this issue ?