Skip to content

Commit

Permalink
fix: input not work at firefox && sogou #2151
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed May 8, 2020
1 parent 352eb84 commit abd1b7f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions components/input/Input.jsx
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions components/input/TextArea.jsx
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion components/vc-tabs/src/InkTabBarNode.jsx
Expand Up @@ -98,7 +98,7 @@ export default {
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
},
updated() {
setTimeout(() => {
this.$nextTick(function() {
componentDidUpdate(this);
});
},
Expand Down
2 changes: 1 addition & 1 deletion components/vc-tabs/src/ScrollableTabBarNode.jsx
Expand Up @@ -52,7 +52,7 @@ export default {
},

updated() {
setTimeout(() => {
this.$nextTick(() => {
this.updatedCal(this.prevProps);
this.prevProps = { ...this.$props };
});
Expand Down

0 comments on commit abd1b7f

Please sign in to comment.