Skip to content

Commit aa63a8b

Browse files
committed
fix: firefox trigger input change when reflow #2151
1 parent e5391de commit aa63a8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/vc-tabs/src/InkTabBarNode.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default {
9898
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
9999
},
100100
updated() {
101-
this.$nextTick(function() {
101+
setTimeout(() => {
102102
componentDidUpdate(this);
103103
});
104104
},

components/vc-tabs/src/ScrollableTabBarNode.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default {
5252
},
5353

5454
updated() {
55-
this.$nextTick(() => {
55+
setTimeout(() => {
5656
this.updatedCal(this.prevProps);
5757
this.prevProps = { ...this.$props };
5858
});

0 commit comments

Comments
 (0)