Skip to content

[Drag] Fix dispose call for FluentDragContainer - #5502

Merged
Denis Voituron (dvoituron) merged 1 commit into
microsoft:devfrom
MarvinKlein1508:fix-dragcontainer-dispose
Oct 22, 2026
Merged

Denis Voituron (dvoituron) merged 1 commit into
microsoft:devfrom
MarvinKlein1508:fix-dragcontainer-dispose

Conversation

@MarvinKlein1508

@MarvinKlein1508 Marvin Klein (MarvinKlein1508) commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request

📖 Description

This PR is a regression of #5418

It updates the FluentDragContainers DisposeAsync method to call dispose on the imported module. Previously it was using the helper method TryInvokeFluentVoidAsync which got executed via IJSRuntime. The IJSRuntime didn't have access to the imported Dispose method from the typescript module.

This fixes a crash when the component gets disposed during a page navigation or when it got removed from the DOM.

 Error: Microsoft.JSInterop.JSException: Could not find 'Microsoft.FluentUI.Blazor.DragContainer.Dispose' ('DragContainer' was undefined).

✅ Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

AI contribution declaration

AI assistance is allowed; fully AI-generated or autonomous pull requests without meaningful human review are not accepted. See the AI contribution policy.

  • I have read and followed the AI contribution policy.
  • I have personally reviewed and understood all changes, tested them, and take responsibility for this contribution.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

⏭ Next Steps

Copilot AI balanced review requested due to automatic review settings October 22, 2026 08:18

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dvoituron
Denis Voituron (dvoituron) merged commit cbf5441 into microsoft:dev Oct 22, 2026
5 checks passed
@MarvinKlein1508
Marvin Klein (MarvinKlein1508) deleted the fix-dragcontainer-dispose branch October 22, 2026 10:23
This was referenced Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants