Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overflow menu to mini context menu #34031

Merged
merged 17 commits into from
Jan 18, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function BaseReportActionContextMenu(props) {
const shouldEnableArrowNavigation = !props.isMini && (props.isVisible || shouldKeepOpen);
let filteredContextMenuActions = _.filter(ContextMenuActions, shouldShowFilter);
filteredContextMenuActions =
props.isMini && filteredContextMenuActions.length > 3 ? [...filteredContextMenuActions.slice(0, 3), filteredContextMenuActions.at(-1)] : filteredContextMenuActions;
props.isMini && filteredContextMenuActions.length > 4 ? [...filteredContextMenuActions.slice(0, 3), filteredContextMenuActions.at(-1)] : filteredContextMenuActions;
esh-g marked this conversation as resolved.
Show resolved Hide resolved
// Context menu actions that are not rendered as menu items are excluded from arrow navigation
const nonMenuItemActionIndexes = _.map(filteredContextMenuActions, (contextAction, index) => (_.isFunction(contextAction.renderContent) ? index : undefined));
const disabledIndexes = _.filter(nonMenuItemActionIndexes, (index) => !_.isUndefined(index));
Expand Down
Loading