This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Uncaught TypeError: Cannot read property 'nodeType' of null at editOnInput #2204
Comments
wrap block children with a ,Especially when block'text.length is ''
|
wrap block children with a div,Especially when block'text.length is '' |
anchorNode can be null |
Merged #2330 to fix this. |
vilemj-Viclick
pushed a commit
to kontent-ai/draft-js
that referenced
this issue
Jul 16, 2020
facebookarchive#2330) Summary: facebookarchive#2204 Pull Request resolved: facebookarchive#2330 Reviewed By: claudiopro Differential Revision: D20582792 Pulled By: mrkev fbshipit-source-id: d96beaa1617ef82ba5663637f5daad254d9b17f7
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do you want to request a feature or report a bug?
A bug
What is the current behavior?
DraftJs is used to power a timed transcript editor. (@bbc/react-transcript-editor) with
blockRendererFn
used to have aWrapperBlock
to display speaker names and time-codes at paragraph level.Trying to add a html
select
element to make it easier to change speaker labels within aWrapperBlock
in this PR. bbc/react-transcript-editor#210However it seems that whenever I make a selection with the select element I get this error in the coneole.
I am not quiet sure what this means or it might refer to?
I found this helpful issue/comment #1085 but would love to learn more about the inner workings to understand why, if my hypothesis is right, calling select in a
WrapperBlock
might be triggering this?If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/gmertk/e61z7nfa/.
To reproduce checkout this PR bbc/react-transcript-editor#210
cd react-transcript-editor
npm install
npm start
load demo
What is the expected behavior?
To not get a console error message when using select in the WrapperBlock
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
initially noticed it in
0.10.5
, then updated to0.11.1
but the message persists.The text was updated successfully, but these errors were encountered: