Skip to content
Snippets Groups Projects
Commit 33251af3 authored by Sam Rose's avatar Sam Rose
Browse files

Defer tooltip update on Resolve Comment button after DOM cycle

parent 62b22583
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -59,9 +59,11 @@
},
methods: {
updateTooltip: function () {
$(this.$refs.button)
.tooltip('hide')
.tooltip('fixTitle');
this.$nextTick(() => {
$(this.$refs.button)
.tooltip('hide')
.tooltip('fixTitle');
});
},
resolve: function () {
if (!this.canResolve) return;
Loading
Loading
@@ -90,7 +92,7 @@
new Flash('An error occurred when trying to resolve a comment. Please try again.', 'alert');
}
 
this.$nextTick(this.updateTooltip);
this.updateTooltip();
});
}
},
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment