Skip to content

Conversation

@Chloepeg
Copy link

@Chloepeg Chloepeg commented Dec 5, 2025

Purpose

PR in response to [DYN-8575] (https://jira.autodesk.com/browse/DYN-8575).

This update ensures that the port context menu behaves consistently with standard UI expectations. By closing the menu whenever the Dynamo window loses focus, it avoids situations where the menu stays visible above other windows, which could confuse users or obstruct other applications. The change is minimal and does not modify any in-canvas interactions or existing menu logic.

Gif

Declarations

Check these if you believe they are true

Release Notes

Added event handlers to automatically close the port context menu when the Dynamo window loses focus.
Prevents the menu from remaining open and floating above other application windows.
No changes were made to existing in-canvas behaviour.

Reviewers

@zeusongit

FYIs

@dnenov

Adds event handlers to close the port context menu when the Dynamo/Revit window loses focus, preventing it from floating above other windows. No changes to existing in-canvas behaviour.
@github-actions github-actions bot changed the title Fix port context menu when switching windows DYN-8575: Fix port context menu when switching windows Dec 5, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8575

- make sure we are unsubscribing using the Dispose pattern
@dnenov dnenov marked this pull request as ready for review December 8, 2025 16:35
@dnenov dnenov requested a review from zeusongit December 8, 2025 16:44
@zeusongit
Copy link
Contributor

Can you confirm if the change also works in custom node workspace?

Added logic to destroy the port context menu when the window is deactivated or the WorkspaceView loses focus. This ensures context menus do not remain open even when switching tab inside Dynamo
@Chloepeg
Copy link
Author

Can you confirm if the change also works in custom node workspace?

Yes it does ! When switching tab inside Dynamo too now.

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