File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,9 @@ export default defineComponent({
172172 handleInputBlur,
173173 size,
174174 disabled,
175+ valueModifiers = { } ,
175176 $attrs,
176177 } = this ;
177-
178178 const inputProps : any = {
179179 ...otherProps ,
180180 ...$attrs ,
@@ -190,6 +190,9 @@ export default defineComponent({
190190 onFocus : handleInputFocus ,
191191 onBlur : handleInputBlur ,
192192 } ;
193+ if ( valueModifiers . lazy ) {
194+ delete inputProps . onInput ;
195+ }
193196 if ( ! inputProps . autofocus ) {
194197 delete inputProps . autofocus ;
195198 }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const TextAreaProps = {
1616 showCount : PropTypes . looseBool ,
1717 onCompositionstart : PropTypes . func ,
1818 onCompositionend : PropTypes . func ,
19+ valueModifiers : Object ,
1920} ;
2021
2122export default defineComponent ( {
@@ -127,6 +128,9 @@ export default defineComponent({
127128 onChange : this . handleChange ,
128129 onKeydown : this . handleKeyDown ,
129130 } ;
131+ if ( this . valueModifiers ?. lazy ) {
132+ delete resizeProps . onInput ;
133+ }
130134 return (
131135 < ResizableTextArea
132136 { ...resizeProps }
Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ export default {
3232 onChange : PropTypes . func ,
3333 onInput : PropTypes . func ,
3434 'onUpdate:value' : PropTypes . func ,
35+ valueModifiers : Object ,
3536} ;
You can’t perform that action at this time.
0 commit comments