From 3c0a1c67ff85d7845c462f1a4acb9a276bb51c66 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 22 Aug 2024 10:46:24 +0300 Subject: [PATCH] Fixed #3623 --- packages/primevue/src/inputmask/InputMask.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/primevue/src/inputmask/InputMask.vue b/packages/primevue/src/inputmask/InputMask.vue index 962d31c5c..94b96722e 100755 --- a/packages/primevue/src/inputmask/InputMask.vue +++ b/packages/primevue/src/inputmask/InputMask.vue @@ -11,6 +11,7 @@ :placeholder="placeholder" :fluid="hasFluid" :unstyled="unstyled" + @input="onInput" @compositionend="onInput" @focus="onFocus" @blur="onBlur" @@ -53,10 +54,14 @@ export default { }, methods: { onInput(event) { - if (this.androidChrome) this.handleAndroidInput(event); - else this.handleInputChange(event); + // Check if the event is part of a text composition process (e.g., for Asian languages). + // If event.isComposing is true, it means the user is still composing text and the input is not finalized. + if (!event.isComposing) { + if (this.androidChrome) this.handleAndroidInput(event); + else this.handleInputChange(event); - this.$emit('update:modelValue', event.target.value); + this.$emit('update:modelValue', event.target.value); + } }, onFocus(event) { if (this.readonly) {