From 8df1b4bd699897264c60da7ce982b09cee57f345 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 28 Mar 2023 09:07:21 +0800 Subject: [PATCH] Fix issue due date edit toggle bug (#23723) Use `toggleElem` instead of jQuery's `fadeToggle`, which can't be caught by eslint jquery plugin. Hopefully this could be the last bug for the jQuery show/hide refactoring. --- web_src/js/features/repo-issue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index 767f0711515..f1425d4459e 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -78,7 +78,7 @@ function updateDeadline(deadlineString) { export function initRepoIssueDue() { $(document).on('click', '.issue-due-edit', () => { - $('#deadlineForm').fadeToggle(150); + toggleElem('#deadlineForm'); }); $(document).on('click', '.issue-due-remove', () => { updateDeadline('');