-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Issue Linked pickers #2611
Comments
Are you considering this for any upcoming releases? |
Yes. My free time has been limited recently. |
Still working on this but for the time being see if this helps const s = new tempusDominus.DateTime('2022-05-05 00:00:00');
startDatePicker.dates.setFromInput(s);
endDatePicker.dates.setFromInput('2022-09-09 00:00:00');
startDatePicker.optionsStore.viewDate = s; //using optionstore and after set from input There's something that is syncing the view dates between pickers and I haven't pinned down why |
I please check out this branch. I think I've fixed this issue https://github.com/Eonasdan/tempus-dominus/tree/2611-issue-linked-pickers |
Here's a StackBlitz |
Will check it out today |
This was released with 6.2.6 |
Thank you so much. This works perfectly. |
Discussed in #2605
Originally posted by cwolcott July 11, 2022
I not sure if this is a bug, if I am missing a call or just the way it is.
Description:
Steps:
1a - Select Button [A] which sets the Start Date (2022-05-05) then the End Date (2022-09-09)
1b - Click the calendar icon for End Date, the calendar is viewing September 2022 and shows the set day 9th.
1c - Click the calendar icon for Start Date, the calendar is viewing the current month (July 2022)
1d - I was hoping it would show the month of the set date (May 2022)
2a - Select Button [B] which sets the End Date (2022-09-09) then the Start Date (2022-05-05)
2b - Click the calendar icon for Start Date, the calendar is viewing May 2022 and shows the set day 5th.
2c - Click the calendar icon for End Date, the calendar is viewing the current month (July 2022)
2d - I was hoping it would show the month of the set date (September 2022)
What can I do so that when the picker is shown the view shows the current month set?
Here is an example
The same issue happens with the Tempus Dominus Examples: Linked Picker
Steps:
3a - Pick a From Date of July 27, 2022
3b - Pick a To Date of Nov 12, 2022
3c - Click the calendar icon for the From Date, the calendar is viewing the To Date month November 2022 and not July 2022.
The text was updated successfully, but these errors were encountered: