DateTime not working for dayValues attribute


#1

When using the dayValues attribute in <ion-datetime> something like this:

 <ion-item>
       <ion-label>Date</ion-label>
       <ion-datetime monthValues="6,7,8" yearValues="2014,2015" dayValues="01,02,03,04,05,06" displayFormat="DD/MMM/YYYY" [(ngModel)]="myDate"></ion-datetime>
</ion-item>

i get the error as:

Cannot set property ‘disabled’ of undefined
at DateTime.validate (datetime.js:486)
at DateTime.open (datetime.js:350)
at DateTime._click (datetime.js:313)

ORIGINAL EXCEPTION: TypeError: Cannot set property ‘disabled’ of undefined
ORIGINAL STACKTRACE:
TypeError: Cannot set property ‘disabled’ of undefined
at DateTime.validate (http://localhost:8100/build/js/app.bundle.js:48564:48)
at DateTime.open (http://localhost:8100/build/js/app.bundle.js:48428:14)
at DateTime._click (http://localhost:8100/build/js/app.bundle.js:48391:14)
at DebugAppView._View_AnalyticsRender0._handle_click_385_1 (AnalyticsRender.template.js:4870:36)
at http://localhost:8100/build/js/app.bundle.js:31774:24
at http://localhost:8100/build/js/app.bundle.js:41260:36
at http://localhost:8100/build/js/app.bundle.js:41330:111
at ZoneDelegate.invoke (http://localhost:8100/build/js/zone.js:323:29)
at Object.onInvoke (http://localhost:8100/build/js/app.bundle.js:36931:41)
at ZoneDelegate.invoke (http://localhost:8100/build/js/zone.js:322:35)
ERROR CONTEXT:
[object Object]Zone.runTask @ zone.js:260ZoneTask.invoke @ zone.js:423

Plunkr: http://plnkr.co/edit/RL5REAhfQdAoEdCjmLj3?p=preview

What could be the issue for this?


#2

I am running into this as well. Does anyone perhaps have a fix or work-around for this issue already?

Cheers