Defer tooltip update on Resolve Comment button after DOM cycle
This commit is contained in:
parent
62b22583a7
commit
33251af3ab
1 changed files with 6 additions and 4 deletions
|
@ -59,9 +59,11 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateTooltip: function () {
|
updateTooltip: function () {
|
||||||
$(this.$refs.button)
|
this.$nextTick(() => {
|
||||||
.tooltip('hide')
|
$(this.$refs.button)
|
||||||
.tooltip('fixTitle');
|
.tooltip('hide')
|
||||||
|
.tooltip('fixTitle');
|
||||||
|
});
|
||||||
},
|
},
|
||||||
resolve: function () {
|
resolve: function () {
|
||||||
if (!this.canResolve) return;
|
if (!this.canResolve) return;
|
||||||
|
@ -90,7 +92,7 @@
|
||||||
new Flash('An error occurred when trying to resolve a comment. Please try again.', 'alert');
|
new Flash('An error occurred when trying to resolve a comment. Please try again.', 'alert');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$nextTick(this.updateTooltip);
|
this.updateTooltip();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue