Skip to content

DataGrid - AI Assistant: Fix infinite confirm dialog loop when closing popup during request#33708

Merged
Alyar666 merged 1 commit into
DevExpress:26_1from
Alyar666:datagrid_ai_assistant_closing_popup_issue_26_1
May 26, 2026
Merged

DataGrid - AI Assistant: Fix infinite confirm dialog loop when closing popup during request#33708
Alyar666 merged 1 commit into
DevExpress:26_1from
Alyar666:datagrid_ai_assistant_closing_popup_issue_26_1

Conversation

@Alyar666

Copy link
Copy Markdown
Contributor

No description provided.

@Alyar666 Alyar666 self-assigned this May 25, 2026
Copilot AI review requested due to automatic review settings May 25, 2026 15:56
@Alyar666 Alyar666 requested a review from a team as a code owner May 25, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes an issue in the DataGrid AI Assistant popup where confirming “close while request is processing” could re-trigger onHiding and repeatedly show the confirm dialog (infinite loop), by allowing the post-confirm hide() call to proceed without re-entering the confirm logic.

Changes:

  • Added an isHidingAfterConfirm guard to prevent onHiding from showing the confirm dialog again after the user already confirmed.
  • Added a unit test that simulates hide() triggering onHiding again while still “processing”, ensuring the confirm dialog is not reopened.

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/grid_core/ai_assistant/ai_assistant_view.ts Adds a one-shot guard to avoid re-opening the confirm dialog during the confirmed hide flow.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/tests/ai_assistant_view.test.ts Adds coverage to ensure onHiding doesn’t re-show the confirm dialog when hide() is called after user confirmation.

@Alyar666 Alyar666 merged commit 26b141d into DevExpress:26_1 May 26, 2026
143 of 145 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants