Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console error with CardNumber input #47

Open
lair60 opened this issue Sep 23, 2024 · 0 comments
Open

Console error with CardNumber input #47

lair60 opened this issue Sep 23, 2024 · 0 comments

Comments

@lair60
Copy link

lair60 commented Sep 23, 2024

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",

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

No branches or pull requests

1 participant