<sp-date-picker> keeps throwing 'isInvalid' error everywhere

xiaix
Tera Guru

When the <sp-date-picker> element loads, changes, anything... I keep getting this error.

I'm in Kingston, Patch 2.

Wherever I'm using this date picker, I can't capture any dates.

 

find_real_file.png

 

find_real_file.png

 

 

1 ACCEPTED SOLUTION

xiaix
Tera Guru

Figured it out.

 

find_real_file.png

 

In the <sp-date-picker>, you NEEDfield attribute, and it should (must?) be the same as your ng-model.

 

Once this is done, bam... no more errors and the date picker works fine.

 

Not sure when they added the necessity for a "field" attribute in the <sp-date-picker> directive, but alas you do!

View solution in original post

10 REPLIES 10

jxsaxton421
Tera Guru

I also seem to be having trouble with this. I am not sure why. Would the datepicker being in an <script ng-template tag be an issue?