Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Critical error when using React from version 16.0.0 on Android #2086

@browserkit

Description

@browserkit

What you need to do to get an error?

I use the React version higher or equal to 16

 "dependencies": {
    "draft-js": "^0.10.5",
    "react": "^16.0.0",
    "react-dom": "^16.0.0"
  },

Сreate a simple component

class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {editorState: EditorState.createEmpty()};
    this.onChange = (editorState) => this.setState({editorState});
  }
  render() {
    return (
        <Editor editorState={this.state.editorState} onChange={this.onChange} />
    );
  }
}

Open the result on the phone or tablet

I use: Android 5.1.1; Nexus 7 Build/LMY47V; Google Chrome 74.0.3729.157;
But the error is reproduced on newer versions of Android.

Error life cycle

  1. I write any text
  2. At the end of the paragraph I press Enter
  3. I click Backspace and again Enter

After which the page falls

ezgif-4-63b0f5d97187

Console errors

DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

Screenshot_108

If you use the React version below 16, then there is no such error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions