Skip to content

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