-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR Review Add Comment increments counter in Review button but CTRL+Enter shortcut doesn't #31622
Comments
I'm looking into this one now. Looks like the on submit functionality doesn't trigger correctly when ctrl+enter submits the form (i.e. no submit handler is attached to the form for ctrl+enter event) |
I've actually encountered another bug (its similar enough to just mention here instead of creating a new one), this is also replicable on Gitea demo site if anyone can confirm. Counter is incremented without a comment posted. Demo Site Version: 1.23.0+dev-318-g957c75bfd2
This is just a UI bug, the comments arent actually being submitted (i.e. reloading the page fixes it), but definitely need to fix the logic surrounding when this button is clickable/form submits and when the incrementing happens. |
May relate to above issue (comments go over some guidelines anyway about frontend code which may be pertinent) |
I think it could be fixed by this: Fix PR diff review form submit #32596 |
Description
When reviewing a PR, adding a comment via the Add Comment button will increment the counter presented in the Review button in the top right corner.
When adding a comment and using the CTRL+Enter shortcut, the comment is added correctly, but the counter is not incremented.
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
We're running a docker container on a Linux VPC
Database
None
The text was updated successfully, but these errors were encountered: