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

Calendar: Should switch to the last date view in multiple mode when value is changed (T1279950) #29358

Open
wants to merge 1 commit into
base: 25_1
Choose a base branch
from

Conversation

r-farkhutdinov
Copy link
Contributor

No description provided.

@r-farkhutdinov r-farkhutdinov marked this pull request as ready for review March 20, 2025 15:15
@r-farkhutdinov r-farkhutdinov self-assigned this Mar 20, 2025
@ksercs ksercs changed the title Calendar: Should switch to the last date view in multiple & controlled mode (T1279950) Calendar: Should switch to the last date view in multiple mode when value is changed (T1279950) Mar 20, 2025
@@ -2015,15 +2036,15 @@ QUnit.module('Options', {

[
{
value: [new Date('01/05/2023'), new Date('02/01/2023')],
value: [new Date('02/01/2023'), new Date('01/05/2023')],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please clarify why we need these changes?

@@ -2106,7 +2136,7 @@ QUnit.module('Options', {
});

QUnit.test('It should be possible to deselect already selected value by click', function(assert) {
const $cell = $(getCurrentViewInstance(this.calendar).$element().find('*[data-value="2023/01/15"]'));
const $cell = $(getCurrentViewInstance(this.calendar).$element().find('*[data-value="2023/02/01"]'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. We should be able to deselect any date, why then it's so important to update here?

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

Successfully merging this pull request may close these issues.

2 participants