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

Untrack DialogReference when dialog is closed #2465

Merged
merged 7 commits into from
Feb 27, 2024

Conversation

tlmii
Copy link
Member

@tlmii tlmii commented Feb 27, 2024

Fixes #2450.

The IDialogReference instance created when either the settings or help dialogs were shown was never cleared when they were closed.

Microsoft Reviewers: Open in CodeFlow

Copy link
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

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

LGTM but don't merge yet. The shortcut PR might be reverted - although perhaps on only P4 branch. PRs on top of it will make that more complicated.

Feel free to fix things but wait a day before merging PRs for clarity on what's happening here.

cc @kvenkatrajan @adamint

@adamint adamint merged commit 0a7b6c7 into dotnet:main Feb 27, 2024
8 checks passed
adamint pushed a commit to adamint/aspire that referenced this pull request Feb 27, 2024
* Untrack DialogReference when dialog is closed

* Fix keyboard shortcuts and url casing

* Suppress JSDisconnectedException

* Check MetaKey and refactor modifier key checks

* removed redundant extra OnDialogCloseRequested call

---------

Co-authored-by: Adam Ratzman <[email protected]>
Co-authored-by: Ratzman, Adam Mortimer <[email protected]>
(cherry picked from commit 0a7b6c7)
adamint pushed a commit to adamint/aspire that referenced this pull request Feb 27, 2024
* Untrack DialogReference when dialog is closed

* Fix keyboard shortcuts and url casing

* Suppress JSDisconnectedException

* Check MetaKey and refactor modifier key checks

* removed redundant extra OnDialogCloseRequested call

---------

Co-authored-by: Adam Ratzman <[email protected]>
Co-authored-by: Ratzman, Adam Mortimer <[email protected]>
(cherry picked from commit 0a7b6c7)
joperezr pushed a commit that referenced this pull request Feb 27, 2024
* Fix shortcuts changing multiple browser windows (#2470)

* Fix shortcuts changing multiple browser windows

* Clean up

(cherry picked from commit fcadd63)

* Fix keyboard shortcuts, url casing and JSDisconnectedException (#2466)

* Fix keyboard shortcuts and url casing

* Suppress JSDisconnectedException

* Check MetaKey and refactor modifier key checks

---------

Co-authored-by: Adam Ratzman <[email protected]>
(cherry picked from commit 197c21e)

* Untrack DialogReference when dialog is closed (#2465)

* Untrack DialogReference when dialog is closed

* Fix keyboard shortcuts and url casing

* Suppress JSDisconnectedException

* Check MetaKey and refactor modifier key checks

* removed redundant extra OnDialogCloseRequested call

---------

Co-authored-by: Adam Ratzman <[email protected]>
Co-authored-by: Ratzman, Adam Mortimer <[email protected]>
(cherry picked from commit 0a7b6c7)

* Use OnDialogClosing instead of OnDialogResult to remove dialog reference in MainLayout (#2476)

* Use OnDialogClosing instead of OnDialogResult

* Remove redundant event listener

---------

Co-authored-by: Adam Ratzman <[email protected]>
(cherry picked from commit 1434b99)

---------

Co-authored-by: James Newton-King <[email protected]>
Co-authored-by: Tim Mulholland <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shortcut dialog stops working after clicking close
3 participants