Skip to content

Console error with CardNumber input #47

Open
@lair60

Description

@lair60

when I render my component I got:

Console Error
value prop on input should not be null. Consider using an empty string to clear the component or undefined for uncontrolled components.

and then when I type on the CardNumber input I got:

A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components

I am using
"react": "18.2.0",
"react-native": "^0.75.3",

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