Skip to content

Commit 443af29

Browse files
authored
fix(ui5-popup, ui5-dialog): remove closed instance from openedPopupsRegistry (#2275)
1 parent 3c9624f commit 443af29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/popup-utils/OpenedPopupsRegistry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const addOpenedPopup = (instance, parentPopovers = []) => {
1717

1818
const removeOpenedPopup = instance => {
1919
openedRegistry = openedRegistry.filter(el => {
20-
return el !== instance.instance;
20+
return el.instance !== instance;
2121
});
2222

2323
if (!openedRegistry.length) {

0 commit comments

Comments
 (0)