Skip to content

CalendarModal with pickMode: 'multi' not working #333

@chrisvor

Description

@chrisvor

Ionic version: (check one with "x")
[ ] 2.x
[ ] 3.x
[ ] 4.x
[ X ] 5.x

Ion2-calendar mode: (check one with "x")
[ ] components mode
[ X ] modal mode

I'm submitting a ... (check one with "x")
[ X ] bug report
[ ] feature request
[ ] help me

Current behavior:
I'm trying to create a MODAL to use for MULTI-date selection. The calendar modal is presented but all options are ignored, e.g. title, weekstart and pickMode

Expected behavior:
The modal should show the title specified in the options object provided, start the week on the day provided (Monday) and allow the selection of multiple "single" dates

Steps to reproduce:
Related code:
const calOptions = {
pickMode: 'multi',
weekStart: 1,
title: "MULTI"
}
const modal = await this.modalCtrl.create({
component: CalendarModal,
componentProps: { calOptions }
})
await modal.present();

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Ionic:

Ionic CLI : 6.16.3 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.5.2
@angular-devkit/build-angular : 0.901.13
@angular-devkit/schematics : 9.0.3
@angular/cli : 9.1.13
@ionic/angular-toolkit : 2.3.3

Capacitor:

Capacitor CLI : 2.4.6
@capacitor/android : 2.4.6
@capacitor/core : 2.4.6
@capacitor/ios : 2.4.6

Utility:

cordova-res : not installed globally
native-run (update available: 1.4.0) : 0.3.0

System:

NodeJS : v14.15.1 (/usr/local/bin/node)
npm : 7.20.0
OS : macOS Big Sur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions