Skip to content

Uncaught TypeError: this.props.onKeyPress is not a function at ContentEditable._onKeyPress #8

Description

@justswim

Console error appears if onKeyPress prop is not passed to ContentEditable

Uncaught TypeError: this.props.onKeyPress is not a function at ContentEditable._onKeyPress

I solved this temporarily by adding a dummy function onKeyPress={() => {}} but it shouldn't be necessary to provide the prop.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions