Skip to content

onBeforeInput needs to be monkey patched #1422

Open
@marvinhagemeister

Description

@marvinhagemeister

Although it is part of the spec the beforeinput event is only available in Chrome at the time of this writing. Neither Firefox nor Safari or IE implement it. But although Chrome has it, it seems to have issues because it can't be prevented. This breaks the popular slate-react bindings for the slate rich-text-editor component.

We need to normalize the event in compat. There are a few hints on how to do so in the react code base, but they're somewhat outdated and we need to reassess the current support status in browsers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions