diff --git a/components/input/TextArea.tsx b/components/input/TextArea.tsx index 671a8fa275..77361062fa 100644 --- a/components/input/TextArea.tsx +++ b/components/input/TextArea.tsx @@ -108,8 +108,8 @@ export default defineComponent({ const resizeProps = { ...props, ...this.$attrs, - style: style && !props.showCount, - class: customClass && !props.showCount, + style: !props.showCount && style, + class: !props.showCount && customClass, showCount: null, prefixCls, onInput: this.handleChange,