Skip to content

Commit 5161cf5

Browse files
authored
feat: not override classname of input under affixWrapper (#11)
* feat: not override classname of input under affixWrapper * test: update snapshot
1 parent fb5c3f6 commit 5161cf5

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/BaseInput.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ const BaseInput: FC<BaseInputProps> = (props) => {
102102
style: null,
103103
value,
104104
hidden: null,
105-
className: classNames(prefixCls, {
106-
[`${prefixCls}-disabled`]: disabled,
107-
}),
108105
})}
109106
{suffixNode}
110107
</span>

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface CommonInputProps {
1717
affixWrapperClassName?: string;
1818
groupClassName?: string;
1919
wrapperClassName?: string;
20+
inputClassName?: string;
2021
allowClear?: boolean;
2122
clearIcon?: ReactNode;
2223
}
@@ -73,7 +74,6 @@ export interface InputProps
7374
showCount?: boolean | ShowCountProps;
7475
autoComplete?: string;
7576
htmlSize?: number;
76-
inputClassName?: string;
7777
}
7878

7979
export interface InputRef {

tests/__snapshots__/BaseInput.test.tsx.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ exports[`BaseInput prefix and suffix should render properly 1`] = `
5353
prefix
5454
</span>
5555
<input
56-
class="rc-input"
5756
value=""
5857
/>
5958
</span>
@@ -63,7 +62,6 @@ exports[`BaseInput prefix and suffix should render properly 1`] = `
6362
class="rc-input-affix-wrapper"
6463
>
6564
<input
66-
class="rc-input"
6765
value=""
6866
/>
6967
<span

0 commit comments

Comments
 (0)