Skip to content

fix(web): attachment remove control renders as javascript:undefined link - #38840

Open
aryamohammadi wants to merge 1 commit into
go-gitea:mainfrom
aryamohammadi:fix-attachment-remove-link-href
Open

fix(web): attachment remove control renders as javascript:undefined link#38840
aryamohammadi wants to merge 1 commit into
go-gitea:mainfrom
aryamohammadi:fix-attachment-remove-link-href

Conversation

@aryamohammadi

Copy link
Copy Markdown

Issue #38802

Dropzone's addRemoveLinks option hardcodes the remove control as an anchor with href="javascript:undefined;", which shows a meaningless URL on hover and announces a fake link to assistive technology. Render the control as a real button instead and keep the file._removeLink reference so dropzone can still swap its label during uploads.

Before:
before-hover

After:
after-hover

Assisted-by: Claude Code:claude-opus-5

Dropzone's addRemoveLinks option hardcodes the remove control as an
anchor with href="javascript:undefined;", which shows a meaningless URL
on hover and announces a fake link to assistive technology. Render the
control as a real button instead and keep the file._removeLink reference
so dropzone can still swap its label during uploads.

Assisted-by: Claude Code:claude-opus-5
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 9, 2026

@wxiaoguang wxiaoguang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI slop garbage, it doesn't really fix anything, horrible dirty patch.

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants