File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default {
39
39
const { value, defaultValue } = this . $props ;
40
40
return {
41
41
stateValue : ! hasProp ( this , 'value' ) ? defaultValue : value ,
42
- isComposing : false
42
+ isComposing : false ,
43
43
} ;
44
44
} ,
45
45
watch : {
@@ -123,7 +123,9 @@ export default {
123
123
} ,
124
124
125
125
handleChange ( e ) {
126
- this . setValue ( e . target . value , e ) ;
126
+ if ( ! e . target . composing ) {
127
+ this . setValue ( e . target . value , e ) ;
128
+ }
127
129
} ,
128
130
handleComposition ( e ) {
129
131
if ( e . type === 'compositionstart' ) {
@@ -247,7 +249,7 @@ export default {
247
249
input : handleChange ,
248
250
change : noop ,
249
251
compositionstart : handleComposition ,
250
- compositionend : handleComposition
252
+ compositionend : handleComposition ,
251
253
} ,
252
254
class : getInputClassName ( prefixCls ) ,
253
255
ref : 'input' ,
@@ -270,7 +272,7 @@ export default {
270
272
change : handleChange ,
271
273
keydown : handleKeyDown ,
272
274
compositionstart : handleComposition ,
273
- compositionend : handleComposition
275
+ compositionend : handleComposition ,
274
276
} ,
275
277
directives : [
276
278
{
You can’t perform that action at this time.
0 commit comments