Skip to content

Commit

Permalink
feat: place className ahead wrapperClassName (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc authored Feb 28, 2022
1 parent b4e4127 commit bbd372e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BaseInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const BaseInput: FC<BaseInputProps> = (props) => {
[`${affixWrapperPrefixCls}-input-with-clear-btn`]:
suffix && allowClear && value,
},
affixWrapperClassName,
!hasAddon(props) && className,
affixWrapperClassName,
);

const suffixNode = (suffix || allowClear) && (
Expand Down Expand Up @@ -124,8 +124,8 @@ const BaseInput: FC<BaseInputProps> = (props) => {

const mergedGroupClassName = classNames(
`${prefixCls}-group-wrapper`,
groupClassName,
className,
groupClassName,
);

// Need another wrapper for changing display:table to display:inline-block
Expand Down

0 comments on commit bbd372e

Please sign in to comment.