#3181·draft-js

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

Author: jeyashree-nCreated Dec 12, 2022Updated Dec 13, 2022

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

Source: facebookarchive/draft-js