You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Edit readme link is visible on top of delete button on certain pages #64
The added edit button which was meant for the readme on the front page of a repository is on top of the delete file button when looking at certain files.
This is expected (you're not in the root) and is different from the other pages because you are affecting a full page refresh.
We're seeing the same issue other PRs, and it's because 'DOMContentLoaded' is not firing for many navigation-type events on GitHub. These bad edit README links disappear on their own on a page refresh, and the recurring "have to refresh to make XXX work" is the same underlying issue.
PR is coming with a CSS fix, but if there's a JS fix (bind to the load event?) then we can do that instead.
@paulmolluzzo thanks for fixing this! I also meant it's not desired the link to be there. I didn't dig deeper in the regex or the CSS, but , but just wanted to show it's not reproducible in every case.
Activity
[-]Edit readme link is visible on [/-][+]Edit readme link is visible on top of delete button on certain pages[/+]paulmolluzzo commentedon Mar 8, 2016
I'm about to make a PR, but I want to call out something this issue highlights:
This is expected (you're not in the root) and is different from the other pages because you are affecting a full page refresh.
We're seeing the same issue other PRs, and it's because
'DOMContentLoaded'is not firing for many navigation-type events on GitHub. These bad edit README links disappear on their own on a page refresh, and the recurring "have to refresh to make XXX work" is the same underlying issue.PR is coming with a CSS fix, but if there's a JS fix (bind to the
loadevent?) then we can do that instead.hkdobrev commentedon Mar 8, 2016
@paulmolluzzo thanks for fixing this! I also meant it's not desired the link to be there. I didn't dig deeper in the regex or the CSS, but , but just wanted to show it's not reproducible in every case.
paulmolluzzo commentedon Mar 8, 2016
@hkdovrev you bet! The point I was making was why two similar scenarios behaved differently. That's all.