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

not work as a control component #841

Open
aliMurtaja opened this issue Aug 16, 2022 · 0 comments
Open

not work as a control component #841

aliMurtaja opened this issue Aug 16, 2022 · 0 comments

Comments

@aliMurtaja
Copy link

aliMurtaja commented Aug 16, 2022

when I used the datePicker as control component, its didn't work the way it should work.

<DatePicker
dateFormat="DD MMM YYYY"
closeOnSelect={true}
autoComplete="new-password"
value= { this.state.dateOfBirth }
/>

I gave the value as a props to make DatePicker control component, but it didn't work.

when I type the any character in DatePicker without update this.state.dateOfBirth, it shows that character in DatePicker.

"react-datetime": "^2.16.3",

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

No branches or pull requests

1 participant