From da6c788c6d8f6707c317603bded7dc16b332c8b2 Mon Sep 17 00:00:00 2001 From: robyngit Date: Mon, 9 Sep 2024 17:27:03 -0400 Subject: [PATCH] Fix broken popovers in MDQ run view See #2506 --- src/js/views/MdqRunView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/views/MdqRunView.js b/src/js/views/MdqRunView.js index 0306aa63e..63a9708c8 100644 --- a/src/js/views/MdqRunView.js +++ b/src/js/views/MdqRunView.js @@ -237,7 +237,10 @@ define([ viewRef.drawScoreChart(qualityReport.models, groupedResults); viewRef.showCitation(); viewRef.show(); - viewRef.$(".popover-this").popover(); + // Make sure the DOM is updated before initializing the popover + requestAnimationFrame(() => { + viewRef.$(".popover-this").popover(); + }); }, /**