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.
This commit is contained in:
wxiaoguang 2023-03-28 09:07:21 +08:00 committed by GitHub
parent 6706ac2a0f
commit 8df1b4bd69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ function updateDeadline(deadlineString) {
export function initRepoIssueDue() { export function initRepoIssueDue() {
$(document).on('click', '.issue-due-edit', () => { $(document).on('click', '.issue-due-edit', () => {
$('#deadlineForm').fadeToggle(150); toggleElem('#deadlineForm');
}); });
$(document).on('click', '.issue-due-remove', () => { $(document).on('click', '.issue-due-remove', () => {
updateDeadline(''); updateDeadline('');