File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,9 @@ export default defineComponent({
172
172
handleInputBlur,
173
173
size,
174
174
disabled,
175
+ valueModifiers = { } ,
175
176
$attrs,
176
177
} = this ;
177
-
178
178
const inputProps : any = {
179
179
...otherProps ,
180
180
...$attrs ,
@@ -190,6 +190,9 @@ export default defineComponent({
190
190
onFocus : handleInputFocus ,
191
191
onBlur : handleInputBlur ,
192
192
} ;
193
+ if ( valueModifiers . lazy ) {
194
+ delete inputProps . onInput ;
195
+ }
193
196
if ( ! inputProps . autofocus ) {
194
197
delete inputProps . autofocus ;
195
198
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const TextAreaProps = {
16
16
showCount : PropTypes . looseBool ,
17
17
onCompositionstart : PropTypes . func ,
18
18
onCompositionend : PropTypes . func ,
19
+ valueModifiers : Object ,
19
20
} ;
20
21
21
22
export default defineComponent ( {
@@ -127,6 +128,9 @@ export default defineComponent({
127
128
onChange : this . handleChange ,
128
129
onKeydown : this . handleKeyDown ,
129
130
} ;
131
+ if ( this . valueModifiers ?. lazy ) {
132
+ delete resizeProps . onInput ;
133
+ }
130
134
return (
131
135
< ResizableTextArea
132
136
{ ...resizeProps }
Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ export default {
32
32
onChange : PropTypes . func ,
33
33
onInput : PropTypes . func ,
34
34
'onUpdate:value' : PropTypes . func ,
35
+ valueModifiers : Object ,
35
36
} ;
You can’t perform that action at this time.
0 commit comments