]> source.dussan.org Git - gitea.git/commit
Fix duplicate project board when hitting `enter` key (#27746)
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>
Mon, 23 Oct 2023 12:40:33 +0000 (20:40 +0800)
committerGitHub <noreply@github.com>
Mon, 23 Oct 2023 12:40:33 +0000 (12:40 +0000)
commit51d1dc22ff94b561b1a3c00f8eb8ac04a4ee2674
treeacb827c6eb9363e01cc4cf8b196f1353e2f64f81
parent61d94b247ab0c9289cd04253fed78283300e8c5e
Fix duplicate project board when hitting `enter` key (#27746)

When hitting the `enter` key to create a new project column, the request
is sent twice because the `submit` event and `key up` event are both
triggered.
Probably a better solution is to rewrite these parts of the code to
avoid using native jQuery but reuse the `form-fetch-action` class. But
it's beyond my ability.
web_src/js/features/repo-projects.js