diff --git a/components/input/Input.tsx b/components/input/Input.tsx index 61e2b3ce13..79ea0cb711 100644 --- a/components/input/Input.tsx +++ b/components/input/Input.tsx @@ -172,9 +172,9 @@ export default defineComponent({ handleInputBlur, size, disabled, + valueModifiers = {}, $attrs, } = this; - const inputProps: any = { ...otherProps, ...$attrs, @@ -190,6 +190,9 @@ export default defineComponent({ onFocus: handleInputFocus, onBlur: handleInputBlur, }; + if (valueModifiers.lazy) { + delete inputProps.onInput; + } if (!inputProps.autofocus) { delete inputProps.autofocus; } diff --git a/components/input/TextArea.tsx b/components/input/TextArea.tsx index 544a49781a..7c72b0580e 100644 --- a/components/input/TextArea.tsx +++ b/components/input/TextArea.tsx @@ -16,6 +16,7 @@ const TextAreaProps = { showCount: PropTypes.looseBool, onCompositionstart: PropTypes.func, onCompositionend: PropTypes.func, + valueModifiers: Object, }; export default defineComponent({ @@ -127,6 +128,9 @@ export default defineComponent({ onChange: this.handleChange, onKeydown: this.handleKeyDown, }; + if (this.valueModifiers?.lazy) { + delete resizeProps.onInput; + } return (