fix: firefox trigger input change when reflow #2151

pull/2212/head
tanjinzhou 2020-05-06 18:02:30 +08:00
parent e5391de807
commit aa63a8b68d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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