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

Fix issues in datepicker #185

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

Conversation

benirose
Copy link

There were two issues in the <datepicker> component that are addressed by this MR:

  • The date passed in was not getting formatted according to the format prop, which can cause unnecessary validation issues
  • The date was being parsed by new Date which comes with all sorts of quirks and problems, and is generally not recommended. We now use date-fns.parse which should avoid these issues.

Also updating the docs to:

  • Show the right default format
  • Take in an ISO date in the demo (as a test of this change)

benirose and others added 26 commits January 31, 2018 15:32
Make scoped styles actually scoped
…e old name, and pointing bower.json to the new files
Fix weird build issues by deleting old built assets with the old name, and pointing bower.json to the new files
Allows the user to tell the calendar to prevent past/current/future dates
Change package name to @waytohealth/vue2-strap3
* Reformat the date on mounted so it displays correctly in the specified format
* use date-fns.parse to prevent any weird UTC issues when no time is included
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

Successfully merging this pull request may close these issues.

3 participants