@@ -38,7 +38,7 @@ export default {
3838 configProvider : { default : ( ) => ConfigConsumerProps } ,
3939 } ,
4040 data ( ) {
41- const { value, defaultValue } = this . $props ;
41+ const { value = '' , defaultValue = '' } = this . $props ;
4242 return {
4343 stateValue : ! hasProp ( this , 'value' ) ? defaultValue : value ,
4444 } ;
@@ -85,18 +85,15 @@ export default {
8585 } ,
8686
8787 setValue ( value , e ) {
88- // https://github.com/vueComponent/ant-design-vue/issues/92
89- if ( isIE && ! isIE9 && this . stateValue === value ) {
88+ if ( this . stateValue === value ) {
9089 return ;
9190 }
9291 if ( ! hasProp ( this , 'value' ) ) {
9392 this . stateValue = value ;
9493 } else {
9594 this . $forceUpdate ( ) ;
9695 }
97- if ( ! e . target . composing ) {
98- this . $emit ( 'change.value' , value ) ;
99- }
96+ this . $emit ( 'change.value' , value ) ;
10097 let event = e ;
10198 if ( e . type === 'click' && this . $refs . input ) {
10299 // click clear icon
@@ -124,8 +121,9 @@ export default {
124121 } ,
125122
126123 handleChange ( e ) {
127- if ( e . target . composing ) return ;
128- this . setValue ( e . target . value , e ) ;
124+ const { value, composing } = e . target ;
125+ if ( composing || this . stateValue === value ) return ;
126+ this . setValue ( value , e ) ;
129127 } ,
130128
131129 renderClearIcon ( prefixCls ) {
0 commit comments