'moment' used to be allowed, but it's not allowed in this library. Also no matter what valid value I use, the outcome of range selection always seems to be a strings (not ISO-8601 formatted even).
To Reproduce
Use the example setup and try changing the value of the type input variable which is bound to the component [type] input
Code snippet
js
type='luxon' // or object or js-date
optionsRange: ICalendarComponentOptions = {
pickMode: 'range',
color: 'primary',
from: new Date(1) // can select backwards dates
};
html
<ion-calendar [(ngModel)]="dateRange"
[options]="optionsRange"
[type]="type"
[format]="'YYYY-MM-DD'">
</ion-calendar>
Describe the bug
'moment' used to be allowed, but it's not allowed in this library. Also no matter what valid value I use, the outcome of range selection always seems to be a strings (not ISO-8601 formatted even).
To Reproduce
Use the example setup and try changing the value of the type input variable which is bound to the component [type] input
Code snippet
Expected behavior
The type input should be taken into account
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response