Skip to content

CardView - "Clear selection" button doesn't clear selection if the option method updates the selectedCardKeys property (T1306438)#33777

Open
markallenramirez wants to merge 3 commits into
DevExpress:26_1from
markallenramirez:bug_T1306438/26_1
Open

CardView - "Clear selection" button doesn't clear selection if the option method updates the selectedCardKeys property (T1306438)#33777
markallenramirez wants to merge 3 commits into
DevExpress:26_1from
markallenramirez:bug_T1306438/26_1

Conversation

@markallenramirez
Copy link
Copy Markdown
Contributor

No description provided.

@markallenramirez markallenramirez self-assigned this Jun 1, 2026
Copilot AI review requested due to automatic review settings June 1, 2026 07:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes CardView selection synchronization so the “Clear selection” toolbar button correctly clears selection even when selectedCardKeys is updated at runtime via the option API.

Changes:

  • Updated selection synchronization effect to react to selectedCardKeys changes (use reactive .value instead of .peek()).
  • Added an integration test covering “clear selection after runtime selectedCardKeys option update”.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/devextreme/js/__internal/grids/new/grid_core/selection/controller.ts Makes the post-load selection application track runtime selectedCardKeys updates.
packages/devextreme/js/__internal/grids/new/grid_core/selection/controller.integration.test.ts Adds regression coverage for the toolbar “Clear selection” scenario after an option-based update.

Copilot AI review requested due to automatic review settings June 3, 2026 04:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines 158 to 165
this.selectionHelper.value;

const isLoaded = this.dataController.isLoaded.value;
if (isLoaded) {
const selectedCardKeys = this.selectedCardKeys.peek();
const selectedCardKeys = this.selectedCardKeys.value;

this.selectCards(selectedCardKeys);
}
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.

3 participants