Remove shouldCloseCommandMenuOnClick (#12593)

Remove deprecated prop `shouldCloseCommandMenuOnClick`
This commit is contained in:
Raphaël Bosi
2025-06-13 13:58:02 +02:00
committed by GitHub
parent 43f611c47b
commit fdb5764acd
3 changed files with 0 additions and 3 deletions

View File

@ -15,7 +15,6 @@ export type CommandMenuItemProps = {
onClick?: () => void; onClick?: () => void;
Icon?: IconComponent; Icon?: IconComponent;
hotKeys?: string[]; hotKeys?: string[];
shouldCloseCommandMenuOnClick?: boolean;
RightComponent?: ReactNode; RightComponent?: ReactNode;
}; };

View File

@ -53,7 +53,6 @@ export const useCommandMenuSearchRecords = () => {
), ),
shouldBeRegistered: () => true, shouldBeRegistered: () => true,
description: capitalize(searchRecord.objectNameSingular), description: capitalize(searchRecord.objectNameSingular),
shouldCloseCommandMenuOnClick: true,
}; };
if ( if (

View File

@ -23,5 +23,4 @@ export type Command = {
Icon?: IconComponent; Icon?: IconComponent;
hotKeys?: string[]; hotKeys?: string[];
onCommandClick?: () => void; onCommandClick?: () => void;
shouldCloseCommandMenuOnClick?: boolean;
}; };