Skip to content

Commit e53ba29

Browse files
committed
fix(AutoComplete): vueComponent#7380 and vueComponent#7276
1 parent 4a2f95f commit e53ba29

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

components/input/TextArea.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default defineComponent({
172172
const handleChange = (e: Event) => {
173173
const { composing } = e.target as any;
174174
let triggerValue = (e.target as any).value;
175-
compositing.value = !!((e as any).isComposing || composing);
175+
compositing.value = !!((e as any).isComposing && composing);
176176
if ((compositing.value && props.lazy) || stateValue.value === triggerValue) return;
177177

178178
if (hasMaxLength.value) {

components/vc-input/Input.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ export default defineComponent({
9393
const handleChange = (e: ChangeEvent) => {
9494
const { value, composing } = e.target as any;
9595
// 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;
9897
const newVal = e.target.value;
9998
resolveOnChange(inputRef.value, e, triggerChange);
10099
setValue(newVal);

0 commit comments

Comments
 (0)