From b4e748c28aaaea202bb02e3b098e568ec3c2bfa9 Mon Sep 17 00:00:00 2001 From: Yu Mao Date: Fri, 16 Oct 2020 02:48:23 -0500 Subject: [PATCH] fix: Cascader duplicated className (#27187) close #27168 --- components/cascader/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/cascader/index.tsx b/components/cascader/index.tsx index 7e54bba0e4..79c27a49fe 100644 --- a/components/cascader/index.tsx +++ b/components/cascader/index.tsx @@ -642,12 +642,19 @@ class Cascader extends React.Component { ); const getPopupContainer = props.getPopupContainer || getContextPopupContainer; - const rest = omit(props, ['inputIcon', 'expandIcon', 'loadingIcon', 'bordered']); + const rest = omit(props, [ + 'inputIcon', + 'expandIcon', + 'loadingIcon', + 'bordered', + 'className', + ]); const rcCascaderPopupClassName = classNames(popupClassName, { [`${prefixCls}-menu-${direction}`]: direction === 'rtl', [`${prefixCls}-menu-empty`]: options.length === 1 && options[0].value === 'ANT_CASCADER_NOT_FOUND', }); + return (