diff --git a/components/notification/PurePanel.tsx b/components/notification/PurePanel.tsx index 47327e97ac..73dbcce036 100644 --- a/components/notification/PurePanel.tsx +++ b/components/notification/PurePanel.tsx @@ -21,6 +21,9 @@ export const TypeIcon = { }; export function getCloseIcon(prefixCls: string, closeIcon?: React.ReactNode): React.ReactNode { + if (closeIcon === null || closeIcon === false) { + return null; + } return ( closeIcon || (