mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-29 18:48:32 +08:00
parent
4815ee6f20
commit
162d1fcf95
@ -172,7 +172,7 @@ export default defineComponent({
|
||||
const handleChange = (e: Event) => {
|
||||
const { composing } = e.target as any;
|
||||
let triggerValue = (e.target as any).value;
|
||||
compositing.value = !!((e as any).isComposing || composing);
|
||||
compositing.value = !!((e as any).isComposing && composing);
|
||||
if ((compositing.value && props.lazy) || stateValue.value === triggerValue) return;
|
||||
|
||||
if (hasMaxLength.value) {
|
||||
|
@ -93,8 +93,7 @@ export default defineComponent({
|
||||
const handleChange = (e: ChangeEvent) => {
|
||||
const { value, composing } = e.target as any;
|
||||
// https://github.com/vueComponent/ant-design-vue/issues/2203
|
||||
if ((((e as any).isComposing || composing) && props.lazy) || stateValue.value === value)
|
||||
return;
|
||||
if (((e as any).isComposing && composing && props.lazy) || stateValue.value === value) return;
|
||||
const newVal = e.target.value;
|
||||
resolveOnChange(inputRef.value, e, triggerChange);
|
||||
setValue(newVal);
|
||||
|
Loading…
Reference in New Issue
Block a user