react-datetime icon indicating copy to clipboard operation
react-datetime copied to clipboard

not work as a control component

Open aliMurtaja opened this issue 3 years ago • 0 comments

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

aliMurtaja avatar Aug 16 '22 09:08 aliMurtaja