Skip to content

Microsoft Edge - Has textInput event fires twice during ctrl-a selection + keypress and crashes Draft-JS #7269

@butchmarshall

Description

@butchmarshall

This issue was discovered while building an editor in Draft-JS (see original issue filed here)

Edge provides a TextEvent - but it's still not useful. Disabling canUseTextInputEvent in React for Edge fixes the Draft-JS issue.

To reproduce the bug in Draft-JS:

Go to https://facebook.github.io/draft-js
type "a"
hit enter
type ctrl-a to select everything
type "j"

You'll get a javascript error. The editor (actually, the ReactDomComponent) is then in a confused state.

The DOM component that the react component points to is prematurely removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions