Skip to content

Commit a17a1da

Browse files
committed
fix: Fixed context menu data disappearing too early, b=no-bug, c=workspaces
1 parent ecbce38 commit a17a1da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/zen/workspaces/ZenWorkspaces.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,9 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
11351135
workspaceActions.addEventListener('popupshowing', this.updateWorkspaceActionsMenu.bind(this));
11361136
workspaceActions.addEventListener('popuphidden', () => {
11371137
setTimeout(() => {
1138-
this.#contextMenuData = null;
1138+
setTimeout(() => {
1139+
this.#contextMenuData = null;
1140+
}, 0);
11391141
}, 0); // Delay to ensure the context menu data is cleared after the popup is hidden
11401142
});
11411143

0 commit comments

Comments
 (0)