Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[type] @Input seems to be ignored #5

Open
vicatcu opened this issue Aug 22, 2024 · 1 comment
Open

[type] @Input seems to be ignored #5

vicatcu opened this issue Aug 22, 2024 · 1 comment
Assignees

Comments

@vicatcu
Copy link

vicatcu commented Aug 22, 2024

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

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>

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

@heliomarpm heliomarpm self-assigned this Aug 25, 2024
@heliomarpm
Copy link
Owner

moment is no longer supported.
I'll check here, but if you have a demo repository it would help a lot.
tks

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

No branches or pull requests

2 participants