fix: input not work at firefox && sogou #2151

pull/2222/head
tanjinzhou 5 years ago
parent 352eb84eff
commit abd1b7f499

@ -173,6 +173,9 @@ export default {
});
},
handleChange(e) {
if (e.inputType === 'insertCompositionText') {
return;
}
const { value, composing } = e.target;
// https://github.com/vueComponent/ant-design-vue/issues/2203
if ((composing && this.lazy) || this.stateValue === value) return;

@ -69,6 +69,9 @@ export default {
this.$emit('input', e);
},
handleChange(e) {
if (e.inputType === 'insertCompositionText') {
return;
}
const { value, composing } = e.target;
if ((composing && this.lazy) || this.stateValue === value) return;

@ -98,7 +98,7 @@ export default {
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
},
updated() {
setTimeout(() => {
this.$nextTick(function() {
componentDidUpdate(this);
});
},

@ -52,7 +52,7 @@ export default {
},
updated() {
setTimeout(() => {
this.$nextTick(() => {
this.updatedCal(this.prevProps);
this.prevProps = { ...this.$props };
});

Loading…
Cancel
Save