Fixed #3623
parent
d3d13cf79f
commit
3c0a1c67ff
|
@ -11,6 +11,7 @@
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:fluid="hasFluid"
|
:fluid="hasFluid"
|
||||||
:unstyled="unstyled"
|
:unstyled="unstyled"
|
||||||
|
@input="onInput"
|
||||||
@compositionend="onInput"
|
@compositionend="onInput"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
@blur="onBlur"
|
@blur="onBlur"
|
||||||
|
@ -53,10 +54,14 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onInput(event) {
|
onInput(event) {
|
||||||
if (this.androidChrome) this.handleAndroidInput(event);
|
// Check if the event is part of a text composition process (e.g., for Asian languages).
|
||||||
else this.handleInputChange(event);
|
// 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) {
|
onFocus(event) {
|
||||||
if (this.readonly) {
|
if (this.readonly) {
|
||||||
|
|
Loading…
Reference in New Issue