chemerisuk / better-dateinput-polyfill

input[type=date] polyfill
http://chemerisuk.github.io/better-dateinput-polyfill/
MIT License
259 stars 58 forks source link

Ability to clear the field #70

Closed LBreda closed 8 years ago

LBreda commented 8 years ago

Is there a way to clear the field after selecting a date? Something like the small "x" you can find in the Chrome datepicker.

chemerisuk commented 8 years ago

You can use BACKSPACE/DELETE key to clear the current value. Though I've noticed at present it only clears current selection in calendar but not the input value, will be fixed in the next version. Adding a separate clear button is a nice to have feature, not for release 2 I think.

chemerisuk commented 8 years ago

Published fix in better-time-element, so BACKSPACE/DELETE keys work properly now. Check demo at http://chemerisuk.github.io/better-dateinput-polyfill/

LBreda commented 8 years ago

It works pretty good, thank you very much. It introduced a new error, tough. If I click on the current month to change it, I get this: http://imgur.com/ZoSDDax

chemerisuk commented 8 years ago

@LBreda hm, I can't figure out steps to reproduce the issue. Have you updated all related plugins? Does the bug exist on the online demo as well?

LBreda commented 8 years ago

Yes, the bug exists on the online demo as well. I get it on Firefox, both on the Debian and Windows versions.

You get the error by clicking on the month in the calendar heading.

Screenshot: http://imgur.com/dpquijp

chemerisuk commented 8 years ago

Alright, I think I got it. Should be fixed in v2.0.0-rc.4 :)

LBreda commented 8 years ago

Thank you!

Il giorno mar 19 apr 2016 alle ore 13:30 Maksim Chemerisuk < notifications@github.com> ha scritto:

Alright, I think I got it. Should be fixed in v2.0.0-rc.4 :)

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/chemerisuk/better-dateinput-polyfill/issues/70#issuecomment-211867774