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

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

Merged

Conversation

adamint
Copy link
Member

@adamint adamint commented Feb 27, 2024

#2465 used OnDialogResult instead of OnDialogClosing to remove the dialog reference. This doesn't work when pressing outside of the dialog (it works when you click the X button or escape)

Microsoft Reviewers: Open in CodeFlow

@adamint adamint changed the title Use OnDialogClosing instead of OnDialogResult Use OnDialogClosing instead of OnDialogResult to remove dialog reference Feb 27, 2024
@adamint adamint changed the title Use OnDialogClosing instead of OnDialogResult to remove dialog reference Use OnDialogClosing instead of OnDialogResult to remove dialog reference in MainLayout Feb 27, 2024
Copy link
Member

@tlmii tlmii left a comment

Choose a reason for hiding this comment

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

It feels like a bug to me that light dismiss doesn't call cancel. I'll file an issue on that repo for follow-up.

@adamint adamint enabled auto-merge (squash) February 27, 2024 19:50
@adamint adamint merged commit 1434b99 into dotnet:main Feb 27, 2024
8 checks passed
adamint added a commit to adamint/aspire that referenced this pull request Feb 27, 2024
…nce in MainLayout (dotnet#2476)

* Use OnDialogClosing instead of OnDialogResult

* Remove redundant event listener

---------

Co-authored-by: Adam Ratzman <[email protected]>
(cherry picked from commit 1434b99)
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.

2 participants