Skip to content

table-input - Restore feature in PR page - #10002

Merged
kovsu merged 4 commits into
refined-github:mainfrom
kovsu:table-input-files-changed
Aug 30, 2026
Merged

kovsu merged 4 commits into
refined-github:mainfrom
kovsu:table-input-files-changed

Conversation

@kovsu

@kovsu kovsu commented Aug 25, 2026

Copy link
Copy Markdown
Member

Test URLs

Any PR page

Screenshot

.rgh-tic
  → <details-menu>
  → <details>                  ← the listener is now attached here (via `base`); the event is handled ✓
  → …editor layers…
  → div[data-inline-markers]   ← GitHub calls stopPropagation() here ✂️
  → React root → document      ← the old document-level `delegate` listener never hears it ✗
Before After
CleanShot.2026-08-25.at.15.45.27.mp4
CleanShot.2026-08-25.at.16.04.43.mp4

The new PR "Files changed" view wraps inline comment editors in `div[data-inline-markers]`, whose React handler stops click propagation, so the document-level `delegate` never received the squares' clicks: the menu opened and closed but nothing was inserted. Listen on the injected `<details>` instead, below the interception point.

Also remove a stray "," text node inside the `<details>`, left over from the JSX conversion in refined-github#9845.
@kovsu kovsu changed the title table-input - Fix table insertion on the new "Files changed" view table-input - Restore feature in PR page Aug 25, 2026
@kovsu
kovsu requested a review from fregante August 25, 2026 08:13
Comment thread source/features/table-input.tsx Resolved
@fregante fregante added the bug label Aug 25, 2026
Comment thread source/features/table-input.tsx Resolved
@kovsu
kovsu requested a review from fregante August 25, 2026 15:45
Comment thread source/features/table-input.tsx Resolved
@kovsu
kovsu merged commit a759846 into refined-github:main Aug 30, 2026
14 checks passed
@kovsu
kovsu deleted the table-input-files-changed branch August 30, 2026 07:20
@kovsu
kovsu restored the table-input-files-changed branch August 30, 2026 07:20
@kovsu
kovsu deleted the table-input-files-changed branch August 30, 2026 07:20
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.

2 participants