Error when replying to code comment from "Conversation" tab #13774

Closed
opened 2025-11-02 10:52:49 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @jpraet on GitHub (Nov 30, 2024).

Description

Replying to a code comment from "Conversation" tab gives an error on https://demo.gitea.com.
When replying to the same comment from the "Files Changed" tab, it works fine.

JS error:

Error: TypeError: e.closest(...) is null
    C0 repo-diff.ts:58
    Be dom.ts:361
repo-diff.ts:90:14
    C0 repo-diff.ts:90
    Be dom.ts:361

Gitea Version

1.23.0+dev-727-ga1f56f83bf

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

https://demo.gitea.com/jpraet/test/pulls/1

Database

None

Originally created by @jpraet on GitHub (Nov 30, 2024). ### Description Replying to a code comment from "Conversation" tab gives an error on https://demo.gitea.com. When replying to the same comment from the "Files Changed" tab, it works fine. JS error: ``` Error: TypeError: e.closest(...) is null C0 repo-diff.ts:58 Be dom.ts:361 repo-diff.ts:90:14 C0 repo-diff.ts:90 Be dom.ts:361 ``` ### Gitea Version 1.23.0+dev-727-ga1f56f83bf ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://github.com/user-attachments/assets/fbe3b881-b8a5-43e2-a0ee-4f4b40e0f46f) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? https://demo.gitea.com/jpraet/test/pulls/1 ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:52:49 -06:00
Author
Owner

@jpraet commented on GitHub (Nov 30, 2024):

Could be a regression from #32596.

@jpraet commented on GitHub (Nov 30, 2024): Could be a regression from #32596.
Author
Owner

@wxiaoguang commented on GitHub (Nov 30, 2024):

Will fix it

@wxiaoguang commented on GitHub (Nov 30, 2024): Will fix it
Author
Owner

@wxiaoguang commented on GitHub (Nov 30, 2024):

Fix JS error when reply commenton Conversation page #32685

@wxiaoguang commented on GitHub (Nov 30, 2024): Fix JS error when reply commenton Conversation page #32685
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13774