Skip to content

Commit 55a9f6a

Browse files
comments-time-machine-links - Exclude task list menus (#8829)
1 parent a45be05 commit 55a9f6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/features/comments-time-machine-links.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ async function init(signal: AbortSignal): Promise<void> {
165165
addDropdownLink(menu, timestamp);
166166
}, {signal});
167167

168-
delegate(`:is(${commentSelector}) button[data-component="IconButton"]:has(> .octicon-kebab-horizontal)`, 'click', addDropdownLinkReact, {signal});
168+
// [data-component="IconButton"] includes only React buttons
169+
// :not([id^="task-list-menu"]) excludes task list (Convert to issue/sub-issue, etc) menu buttons
170+
delegate(`:is(${commentSelector}) button[data-component="IconButton"]:has(> .octicon-kebab-horizontal):not([id^="task-list-menu"])`, 'click', addDropdownLinkReact, {signal});
169171

170172
observe(
171173
`:is(${commentSelector}) a[href^="${location.origin}"]:not(.${linkifiedURLClass})`,

0 commit comments

Comments
 (0)