Close command menu after destroy (#12525)

Added an argument `closeCommandMenuFromShowPageOptionsMenu` which allows
us to not only close the parent action menu if the action is located
inside the record page action menu dropdown, but to also close the
command menu after, which is the behavior we want for the destroy
action.
This commit is contained in:
Raphaël Bosi
2025-06-11 18:38:04 +02:00
committed by GitHub
parent 17fb47f97c
commit e33f2fadd8
6 changed files with 41 additions and 8 deletions

View File

@ -76,7 +76,7 @@ export const useCommandMenuSearchRecords = () => {
objectNameSingular: CoreObjectNameSingular.Note,
});
}}
preventCommandMenuClosing
closeSidePanelOnCommandMenuListActionExecution={false}
/>
),
};