From 744c4ed024cd1a20b83488d3cf88562a85a14e1a 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 52f777b6a00c0..eb00157279080 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('');