draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

Invalid selection state.

Open liyunjuan opened this issue 5 years ago • 7 comments

What is the current behavior? I want to stitch Chinese after IMMUTABLE entity, but it will destroy the previous entity。 Give a warning: Invalid selection state。

What is the expected behavior? I want to retain the previous entity.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? It is normal in version 0.10.5, but not in version 0.11.5.

liyunjuan avatar May 27 '20 09:05 liyunjuan

I got the same problem

rojer95 avatar Jul 18 '20 08:07 rojer95

I got the same problem too

xijiji avatar Nov 03 '20 09:11 xijiji

I got same error too!

getUpdatedSelectionState.js:43 Invalid selection state.

why there is not more detail on this error text?

sayjeyhi avatar Feb 25 '21 05:02 sayjeyhi

I experienced the same error when using draft.js in SSR environment. I now load the editor component dynamically and the error is gone.

zeekrey avatar Aug 16 '21 08:08 zeekrey

Has anyone solved the problem?

sirexelite avatar Aug 26 '22 08:08 sirexelite

I had the same problem using Next.js and used @zeekrey 's solution to dynamically load the editor and the problem was gone

VilizarTodorov avatar Sep 28 '22 08:09 VilizarTodorov

您好,您的邮件已收到。席季季北京邮电大学

xijiji avatar Oct 11 '22 07:10 xijiji