FIX: allow lightbox cleanup on navigation changes (#22954)

Use dom:clean event to trigger lightbox clean up on navigation changes
This commit is contained in:
David Battersby 2023-08-08 11:48:20 +08:00 committed by GitHub
parent 09223e5ae7
commit 175f6f6a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -52,8 +52,7 @@ export const SELECTORS = {
};
export const LIGHTBOX_APP_EVENT_NAMES = {
// this cannot use dom:clean else #cleanupLightboxes will be called after #setupLightboxes
CLEAN: "lightbox:clean",
CLEAN: "dom:clean",
CLOSE: "lightbox:close",
CLOSED: "lightbox:closed",
ITEM_DID_CHANGE: "lightbox:item-did-change",