From 2f1a5ceab83f9c03cf4239b0541b7b7f30d04de2 Mon Sep 17 00:00:00 2001 From: Henry Goodman <13032204@student.uts.edu.au> Date: Fri, 2 Aug 2024 22:19:21 +1000 Subject: [PATCH] Remove attached flag after callback function has finished --- web_src/js/features/repo-diff.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/js/features/repo-diff.ts b/web_src/js/features/repo-diff.ts index 3e8aef895e..35cf4dbf90 100644 --- a/web_src/js/features/repo-diff.ts +++ b/web_src/js/features/repo-diff.ts @@ -31,6 +31,7 @@ function initRepoDiffReviewButton() { counter.setAttribute('data-pending-comment-number', num); counter.textContent = num; animateOnce(reviewBox, 'pulse-1p5-200'); + form.removeAttribute('data-handler-attached'); }); }