You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When content is dynamically added to the page and comments that are part of the dynamically added content do not have "full" behaviour.
For example when viewing a pull request which doesn't have all the files loaded (exceeds git.MAX_GIT_DIFF_FILES) then a "Show More" button appears at the bottom of the page. When the new file diffs are loaded they include their comments however the user isn't able to edit them.
To reproduce I suggest creating a design review with 2 files, adding a comment on the second and then setting git.MAX_GIT_DIFF_FILES=1 and reloading. This will force you to click "show more" and observe the behaviour when trying to edit the comment.
Problem
The event listener isn't being attached to the DOM for the the button. The eventHandler can be found at semantic.js:2391 (of the build output). I am working on figuring out where the event listener should be added but any help would be apprieciated.
Screenshots
Button thats not working
Screen Recording
Screen.Recording.2025-02-07.at.12.23.13.PM.mov
Gitea Version
main, 1.23, 1.22
Can you reproduce the bug on the Gitea demo site?
Yes but due to git.MAX_GIT_DIFF_FILES being rather large its easier to do locally.
Operating System
No response
Browser Version
Chrome, Firefox latest
The text was updated successfully, but these errors were encountered:
After looking at this a bit, it seems this event listener is added in initGlobalDropdown which only runs once when the DOM is loaded.
Its unclear to if calling initGlobalDropdown again on every "Show More" is suitable. It seems like a heavy handed approach and may result in multiple event listeners.
I am looking for something similar to htmx.process but for the fomantic stuff.
Description
When content is dynamically added to the page and comments that are part of the dynamically added content do not have "full" behaviour.
For example when viewing a pull request which doesn't have all the files loaded (exceeds
git.MAX_GIT_DIFF_FILES
) then a "Show More" button appears at the bottom of the page. When the new file diffs are loaded they include their comments however the user isn't able to edit them.To reproduce I suggest creating a design review with 2 files, adding a comment on the second and then setting
git.MAX_GIT_DIFF_FILES=1
and reloading. This will force you to click "show more" and observe the behaviour when trying to edit the comment.Problem
The event listener isn't being attached to the DOM for the the button. The eventHandler can be found at semantic.js:2391 (of the build output). I am working on figuring out where the event listener should be added but any help would be apprieciated.
Screenshots
Button thats not working
Screen Recording
Screen.Recording.2025-02-07.at.12.23.13.PM.mov
Gitea Version
main, 1.23, 1.22
Can you reproduce the bug on the Gitea demo site?
Yes but due to
git.MAX_GIT_DIFF_FILES
being rather large its easier to do locally.Operating System
No response
Browser Version
Chrome, Firefox latest
The text was updated successfully, but these errors were encountered: