Skip to content

Warning: Invalid DOM property enterkeyhint #1778

@steida

Description

@steida

The problem
React 17 changed valid DOM property dev warning logic.
react-dom.development.js?61bb:67 Warning: Invalid DOM property enterkeyhint. Did you mean enterKeyHint?

How to reproduce
Just use TextInput.
https://codesandbox.io/s/zen-knuth-zn4ux

Expected behavior
Change this line supportedProps.enterkeyhint = returnKeyType; in TextInput. However, it would break React < 17 so I am not really sure how it should be fixed.

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