Remove shouldCloseCommandMenuOnClick (#12593)
Remove deprecated prop `shouldCloseCommandMenuOnClick`
This commit is contained in:
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,6 @@ export const useCommandMenuSearchRecords = () => {
|
|||||||
),
|
),
|
||||||
shouldBeRegistered: () => true,
|
shouldBeRegistered: () => true,
|
||||||
description: capitalize(searchRecord.objectNameSingular),
|
description: capitalize(searchRecord.objectNameSingular),
|
||||||
shouldCloseCommandMenuOnClick: true,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
@ -23,5 +23,4 @@ export type Command = {
|
|||||||
Icon?: IconComponent;
|
Icon?: IconComponent;
|
||||||
hotKeys?: string[];
|
hotKeys?: string[];
|
||||||
onCommandClick?: () => void;
|
onCommandClick?: () => void;
|
||||||
shouldCloseCommandMenuOnClick?: boolean;
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user