Skip to content

Commit dc8306b

Browse files
authored
fix: input search style bug #2077 (#2081)
close #2077
1 parent 603dcec commit dc8306b

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

components/input/ClearableLabeledInput.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const ClearableLabeledInput = {
9393
[`${prefixCls}-affix-wrapper-input-with-clear-btn`]:
9494
props.suffix && props.allowClear && this.$props.value,
9595
});
96+
9697
return (
9798
<span class={affixWrapperCls} style={props.style}>
9899
{prefix}

components/input/Input.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export default {
136136
'lazy',
137137
'size',
138138
'inputType',
139+
'className',
139140
]);
140141
const { stateValue, handleKeyDown, handleChange, size, disabled } = this;
141142
const inputProps = {

components/input/Search.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ export default {
170170
prefix: getComponentFromProp(this, 'prefix'),
171171
addonAfter: this.renderAddonAfter(prefixCls),
172172
addonBefore,
173+
className: inputClassName,
173174
},
174175
attrs: this.$attrs,
175-
class: inputClassName,
176176
ref: 'input',
177177
on: {
178178
pressEnter: this.onSearch,

components/input/inputProps.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ export default {
3232
},
3333
maxLength: PropTypes.number,
3434
loading: PropTypes.bool,
35+
className: PropTypes.string,
3536
};

0 commit comments

Comments
 (0)