material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[DatePicker] AutoAccept bug

Open chuchengcao opened this issue 11 years ago • 6 comments

<DatePicker autoOk={true}>

When you click the paging arrow, it will cause autoOK unexpectly.

chuchengcao avatar Jul 10 '15 07:07 chuchengcao

Another problem, when set props defaultDate to null, when focus on the input, it will cause an error:

date-time.js:43 Uncaught TypeError: Cannot read property 'getFullYear' of null

And then page is hang

chuchengcao avatar Jul 10 '15 08:07 chuchengcao

#830 Attempted to fix this. Waiting on revision.

hai-cea avatar Jul 11 '15 16:07 hai-cea

#830 was replaced by #1243, which has been merged. Closing for now.. @chuchengcao please retest and let us know if you still experience the issue.

shaurya947 avatar Nov 17 '15 21:11 shaurya947

I'm still experimenting the error when set defaultDate to null, then focus on the input I get:

date-time.js:73 Uncaught TypeError: Cannot read property 'getFullYear' of null

ursulacervantes avatar Nov 18 '15 14:11 ursulacervantes

Me too, I get the Uncaught TypeError: Cannot read property 'getFullYear' of null when date is null (which I need it to be)

afilp avatar Nov 28 '15 14:11 afilp

This seems to be resolved now. Closing this for now.

Do let us know if you still see this issue.

tintin1343 avatar Apr 14 '16 17:04 tintin1343