From bbd372e8b5932fe46a93c67bd258fc2cf1d60d85 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Mon, 28 Feb 2022 15:29:37 +0800 Subject: [PATCH] feat: place className ahead wrapperClassName (#10) --- src/BaseInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BaseInput.tsx b/src/BaseInput.tsx index 1541939..09783f3 100644 --- a/src/BaseInput.tsx +++ b/src/BaseInput.tsx @@ -78,8 +78,8 @@ const BaseInput: FC = (props) => { [`${affixWrapperPrefixCls}-input-with-clear-btn`]: suffix && allowClear && value, }, - affixWrapperClassName, !hasAddon(props) && className, + affixWrapperClassName, ); const suffixNode = (suffix || allowClear) && ( @@ -124,8 +124,8 @@ const BaseInput: FC = (props) => { const mergedGroupClassName = classNames( `${prefixCls}-group-wrapper`, - groupClassName, className, + groupClassName, ); // Need another wrapper for changing display:table to display:inline-block