Content-Length: 268351 | pFad | http://github.com/umbraco/Umbraco-CMS/pull/19510

E8 Fix toast notification can not be closed by NguyenThuyLan · Pull Request #19510 · umbraco/Umbraco-CMS · GitHub
Skip to content

Fix toast notification can not be closed #19510

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NguyenThuyLan
Copy link
Contributor

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes

Description

This PR fixes for #16486

Reason:
The showModal() method of the HTMLDialogElement interface displays the dialog as a modal, over the top of any other dialogs that might be present. That's why toast-notification (popover ) stays non-interactive despite appearing above the modal.
Solution:
When the dialog is opened, move the umb-backoffice-notification-container inside the dialog so that the notification can be interacted with, and when the dialog is closed, move the notification back out to the DOM.

@NguyenThuyLan NguyenThuyLan requested a review from iOvergaard June 9, 2025 06:08
Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

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

I'll have to leave this for a FE expert to review to see if the solution is a good one @NguyenThuyLan, but before they get to it, I'd suggest looking to clean up the linting errors.

There are these thrown, all around using const or let over var - being more explicit about the variable declaration and aligning with the rest of the code base:

/home/runner/work/Umbraco-CMS/Umbraco-CMS/src/Umbraco.Web.UI.Client/src/packages/core/components/backoffice-modal-container/backoffice-modal-container.element.ts
Error:    89:3  error  Unexpected var, use let or const instead  no-var
Error:    90:3  error  Unexpected var, use let or const instead  no-var
Error:    91:3  error  Unexpected var, use let or const instead  no-var
Error:   128:3  error  Unexpected var, use let or const instead  no-var
Error:   133:3  error  Unexpected var, use let or const instead  no-var

I'd also "nit-pick" being consistent with spacing. E.g. where you have if (!modalSidebar) { it's correct, but if(!dialog){ is missing expected spacing. Of course this doesn't change anything functionally, but it's cleaner to read.

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.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/umbraco/Umbraco-CMS/pull/19510

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy