-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Closing issue(s) by using batch checkbox leaves wrong item ticked. #7311
Comments
Also I just noticed that even if we do want to do a second operation, that the batch operation buttons disappear after the first operation, and even thought the issues remain ticked, you have to untick/tick another one before the batch operation buttons re-appear. |
The problem is caused by browser cache. Process is as followed:
So the still checked boxes are more likely a bug than a feature to keep them checked. Simplest solution is to tell the browser explicitly to not remember checked boxes. |
To keep checked boxes would be an additional feature request. This could be done in 2 ways:
|
I just noticed that browsers like Chrome/Cromium ( -> webkit) don't show this behavior, they simply don't remember the checkboxes. |
pr will fix firefox behavior
|
- close: deselect all - nonclose: show buttons for close/label/milestone... fix go-gitea#7311 Signed-off-by: Michael Gnehr <michael@gnehr.de>
this would be ideal yes. We should eventually abolish all uses of page reloads in JS, that's just unnecessary. |
* fix/define autochecked checkboxes on issue list on firefox - close: deselect all - nonclose: show buttons for close/label/milestone... fix #7311 Signed-off-by: Michael Gnehr <michael@gnehr.de> * remove unnessesary timeouts Signed-off-by: Michael Gnehr <michael@gnehr.de> * add comments in code - this is targeting firefox Signed-off-by: Michael Gnehr <michael@gnehr.de>
…7320) * fix/define autochecked checkboxes on issue list on firefox - close: deselect all - nonclose: show buttons for close/label/milestone... fix go-gitea#7311 Signed-off-by: Michael Gnehr <michael@gnehr.de> * remove unnessesary timeouts Signed-off-by: Michael Gnehr <michael@gnehr.de> * add comments in code - this is targeting firefox Signed-off-by: Michael Gnehr <michael@gnehr.de>
[x]
):Description
Closing issue(s) by using batch checkbox leaves wrong item ticked.
Reproduce
Expected
The issue is closed, and is removed from the list. No other issues are ticked.
Actual
The issue is close and removed as expected, however the position it was at remains ticked. As the issues have all moved up to fill the space, now an unrelated issue is ticked.
Problem
A second click of the close button could close the wrong issue. Or if we wish to do another batch operation we need to untick all the wrong ticks.
Fix
Untick all checkboxes after batch operation, but only if the operation was CLOSE.
I can see this is useful to keep them ticked if we are modifying milestone or label as we may want to preform another operation on the same issues, so I don't think we want to remove this functionality completely.
The text was updated successfully, but these errors were encountered: