Skip to content

Commit

Permalink
fix(client): fixed a bug where menu navigation would break because of…
Browse files Browse the repository at this point in the history
… improper reset
  • Loading branch information
will-moss committed Jan 20, 2024
1 parent b20a9ec commit 4193150
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/client/assets/js/isaiah.js
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,14 @@
}
},

/**
* Private - Clear menu actions
*/
_clearMenu: function () {
state.menu.actions = [];
state.menu.key = null;
},

/**
* Private - Show a popup
* @param {string} key
Expand Down Expand Up @@ -1794,6 +1802,8 @@
},
],
});

cmdRun(cmds._clearMenu);
return;
}

Expand All @@ -1817,15 +1827,18 @@

if (attributes.useRow) {
cmdRun(cmds[attributes.command], sgetCurrentRow());
cmdRun(cmds._clearMenu);
return;
}

if (attributes.useMenuAction) {
cmdRun(cmds[attributes.command], _menuAction);
cmdRun(cmds._clearMenu);
return;
}

cmdRun(cmds[attributes.command]);
cmdRun(cmds._clearMenu);
}

return;
Expand Down

0 comments on commit 4193150

Please sign in to comment.