Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

allow empty or invalid initial date #164

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

djonin
Copy link

@djonin djonin commented Apr 14, 2016

This will allow the user to pass in an invalid date. The viewDate will be initialised to the current month. The inputValue will be initialised to empty string. The selectedDate property will stay invalid (no date selected) until either the user selects a date or toggles the time picker, at which point the date picker will be initialised to the current date and time.
Also fixed the AM/PM switch adding 12 hours instead of subtracting when you switch from 12:xx noon to midnight.
This merge should fix issues #159 #148 and #100.

@ersefuril
Copy link

This PR really need to be merged ! I'm having the same issue with empty date and I cannot apply some validation on it since it's always returning "Invalid date".

@gordonk
Copy link

gordonk commented Apr 22, 2016

I've grabbed those changes and they're working really well. Thanks @djonin

@yunicz
Copy link

yunicz commented Jun 13, 2016

what about a merge? :)

@ersefuril
Copy link

This project seems to be dead, so your best option is probably to clone it and apply your changes (or to look for another datepicker, ahem).

@chollier
Copy link
Member

chollier commented Jul 1, 2016

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

Successfully merging this pull request may close these issues.

6 participants