Ionic version: (check one with "x")
[ ] 2.x
[x] 3.x
[ ] 4.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
[x] help me
Current behavior:
Built an ionic app. Running the app on android and iphone real devices. Android works perfectly. iPhone I can't select any dates and the disabled days look the same as the selectable days.
Expected behavior:
I expect iPhone and Android to be pretty much the same. I expect to be able to select dates on iPhone.
Steps to reproduce:
Run the app on an iPhone. The same code works correctly on Android but not on iPhone.
Related code:
openCalendar() {
console.log('openCalendar()');
let today = new Date();
let startDate = new Date().setMonth(today.getMonth() - 1);
let endDate = new Date().setMonth(today.getMonth() + 1);
const options: CalendarModalOptions = {
title: 'Select Dates',
pickMode: 'multi',
canBackwardsSelected: true,
defaultDateRange: { from: startDate, to: endDate },
defaultDates: this.dates,
to: new Date()
};
let myCalendar = this.modalController.create(CalendarModal, {
options: options
});
myCalendar.present();
myCalendar.onDidDismiss((dates: Array<CalendarResult>, type: string) => {
console.log('Dates back from modal: ', dates); });
}
Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Ionic version: (check one with "x") [ ] 2.x [x] 3.x [ ] 4.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 [x] help me
Current behavior: Built an ionic app. Running the app on android and iphone real devices. Android works perfectly. iPhone I can't select any dates and the disabled days look the same as the selectable days.
Expected behavior: I expect iPhone and Android to be pretty much the same. I expect to be able to select dates on iPhone.
Steps to reproduce: Run the app on an iPhone. The same code works correctly on Android but not on iPhone.
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):