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

CalendarModal with pickMode: 'multi' not working #333

Open
chrisvor opened this issue Jul 28, 2021 · 0 comments
Open

CalendarModal with pickMode: 'multi' not working #333

chrisvor opened this issue Jul 28, 2021 · 0 comments

Comments

@chrisvor
Copy link

chrisvor commented Jul 28, 2021

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

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

1 participant