Skip to content

quick-comment-edit - Improve support of repeated issue edits - #10017

Merged
fregante merged 2 commits into
mainfrom
menu-open
Aug 31, 2026
Merged

fregante merged 2 commits into
mainfrom
menu-open

Conversation

@fregante

Copy link
Copy Markdown
Member

@github-actions github-actions Bot added the bug label Aug 30, 2026
// This must be a double GitHub bug: the menu has the same "labelledby" as the `menuButton` itself.
// Note: this selector will select `menuButton` itself if it lacks a tag name
// https://github.com/refined-github/refined-github/issues/10003
`ul[aria-labelledby="${menuButton.getAttribute('aria-labelledby')}"]`,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

[aria-labelledby="${menuButton.getAttribute('aria-labelledby')}] was selecting itself, as somewhat expected. It only worked if the menu appeared in the dom before the button.

I guess it stops working after the first edit because GitHub will regenerate the menu and append it to the document, after the button.

cc @SunsetTechuila if you see any issues with this change.

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.

if you see any issues with this change

It works, so I don't see any

@SunsetTechuila

Copy link
Copy Markdown
Contributor

Meh, this certainly used to work when I opened the PR

@fregante
fregante merged commit d85ff24 into main Aug 31, 2026
14 checks passed
@fregante
fregante deleted the menu-open branch October 20, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

quick-comment-edit - Issue with list item description fails on re-edit button press

2 participants