File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export default defineComponent({
172
172
const handleChange = ( e : Event ) => {
173
173
const { composing } = e . target as any ;
174
174
let triggerValue = ( e . target as any ) . value ;
175
- compositing . value = ! ! ( ( e as any ) . isComposing || composing ) ;
175
+ compositing . value = ! ! ( ( e as any ) . isComposing && composing ) ;
176
176
if ( ( compositing . value && props . lazy ) || stateValue . value === triggerValue ) return ;
177
177
178
178
if ( hasMaxLength . value ) {
Original file line number Diff line number Diff line change @@ -93,8 +93,7 @@ export default defineComponent({
93
93
const handleChange = ( e : ChangeEvent ) => {
94
94
const { value, composing } = e . target as any ;
95
95
// https://github.com/vueComponent/ant-design-vue/issues/2203
96
- if ( ( ( ( e as any ) . isComposing || composing ) && props . lazy ) || stateValue . value === value )
97
- return ;
96
+ if ( ( ( e as any ) . isComposing && composing && props . lazy ) || stateValue . value === value ) return ;
98
97
const newVal = e . target . value ;
99
98
resolveOnChange ( inputRef . value , e , triggerChange ) ;
100
99
setValue ( newVal ) ;
You can’t perform that action at this time.
0 commit comments