Skip to content

Restore features in file lists - #3950

Merged
fregante merged 1 commit into
mainfrom
new-pjax
Feb 6, 2021
Merged

fregante merged 1 commit into
mainfrom
new-pjax

Conversation

@fregante

@fregante fregante commented Feb 6, 2021 •

Copy link
Copy Markdown
Member

Fixes #3945 and maybe more

To replicate:

  1. Open https://github.com/sindresorhus/refined-github/tree/main/test
  2. Visit a file
  3. Notice the lack of Copy button
  4. Refresh
  5. It's there now

It seems that there's a new nested ajax container. The pjax:end listener was being called, but has-rgh was not being removed by GitHub because GitHub changed a niece of has-rgh instead of its parent.

@fregante fregante added the bug label Feb 6, 2021
@fregante
fregante merged commit 1f8dcbf into main Feb 6, 2021
@fregante
fregante deleted the new-pjax branch February 6, 2021 20:18
@fregante
fregante restored the new-pjax branch February 7, 2021 01:25
@fregante

fregante commented Feb 7, 2021

Copy link
Copy Markdown
Member Author

As I feared, this actually broke other features. Merge undone, issue reopened.

Screen Shot 1

@fregante
fregante deleted the new-pjax branch February 7, 2021 01:27
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.

Copy button doesn't show (and other file-related features)

1 participant