-
-
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
Prevent invalid behavior for file reviewing when loading more files #21230
Prevent invalid behavior for file reviewing when loading more files #21230
Conversation
The problem was that later loaded files got the same ID, which confused the browsers when clicked. Additionally auto-update the go-licenses.json
I've noticed that this problem is present at least once more in this block (there are multiple other occurrences of |
Good catch, I think these |
I have nothing against that. |
I don't think it's a good idea to remove it completely as it definitely helps with skimming through a PR, |
Ah, the other changes didn't require any JS changes at all? |
Yes, if I understand correctly, the other changes are only for SVG/CSV diff, to toggle the source. These IDs are used by |
How do you think about this? (I could propose a new PR if we want to keep this PR simple) |
Fine with me. |
Odd, must be a bug in go-licenses, our go dependencies did not change since last generation. |
I also experience such problem. I just ignore(reset) that file everytime. It's good to get it in. |
Well, it's inside our Line 106 in 0a9a86b
go-licenses.json previously…
|
Might be because Edit: Thought, there are more packages from Also use of a |
…o-gitea#21230) The problem was that many PR review components loaded by `Show more` received the same ID as previous batches, which confuses browsers (when clicked). All such occurrences should now be fixed. Additionally improved the background of the `viewed` checkbox. Lastly, the `go-licenses.json` was automatically updated. Fixes go-gitea#21228. Fixes go-gitea#20681. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* upstream/main: Use absolute links in feeds (go-gitea#21229) Prevent invalid behavior for file reviewing when loading more files (go-gitea#21230) Respect `REQUIRE_SIGNIN_VIEW` for packages (go-gitea#20873) Make Clone in VSCode link get updated correctly (go-gitea#21225) Configure golangci-lint to show all issues (go-gitea#21106) Fix user visible check (go-gitea#21210) Fix template bug of admin monitor (go-gitea#21208) Clarify that `ENABLE_SWAGGER` only influences the API docs, not the routes (go-gitea#21215) Enable fluid page layout on medium size viewports (go-gitea#21178) [API] teamSearch show teams with no members if user is admin (go-gitea#21204)
…21230) (#21234) Backport of #21230 The problem was that many PR review components loaded by `Show more` received the same ID as previous batches, which confuses browsers (when clicked). All such occurrences should now be fixed. Additionally improved the background of the `viewed` checkbox. Fixes #21228. Fixes #20681. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
The problem was that many PR review components loaded by
Show more
received the same ID as previous batches, which confuses browsers (when clicked).All such occurrences should now be fixed.
Additionally improved the background of the
viewed
checkbox:Lastly, the
go-licenses.json
was automatically updated.Fixes #21228.
Fixes #20681.