Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

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

Open
Blackbaud-SarahMalick opened this issue Apr 25, 2018 · 0 comments
Open

Comments

@Blackbaud-SarahMalick
Copy link

Blackbaud-SarahMalick commented Apr 25, 2018

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

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

No branches or pull requests

1 participant