blackbaud / skyux1

DEPRECATED This site contains the codebase for the AngularJS (1.x) implementation of the SKY UX framework. We no longer support this version of SKY UX, and we recommend that you use the latest version instead. https://developer.blackbaud.com/skyux/
MIT License
51 stars 68 forks source link

Cannot set bb-datepicker with string in format: 'yyyy-mm-dd' #1092

Open Blackbaud-SarahMalick opened 6 years ago

Blackbaud-SarahMalick commented 6 years ago

Expected behavior

We should be able to use 'yyyy-mm-dd' format to set a datepicker field (instead of just 'MM/dd/yyyy') when no format is specified.

Actual behavior

Console error logged when setting datepicker with 'yyyy-mm-dd'.

Steps to reproduce

  1. Open the console on the plunker page.
  2. Use the datepicker to choose any date.
  3. Click save.
  4. Notice that a console error has been logged (TypeError: Cannot read property 'length' of undefined)

Plunker

http://plnkr.co/edit/PR3vmRcAZsY5FO4FEac2?p=preview