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:
parent
09223e5ae7
commit
175f6f6a14
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue