Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading button with invalid form (go-gitea#20754)
Previously, if a invalid form was submitted (for example issue with no title), the form could not be re-submitted again because the button would not stay stuck in loading state. Fix that by hooking the 'submit' event instead which triggers only when the form is valid. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
- Loading branch information