Skip to content

Edit readme link is visible on top of delete button on certain pages #64

Closed

Activity

  1. changed the title [-]Edit readme link is visible on [/-] [+]Edit readme link is visible on top of delete button on certain pages[/+] on Mar 8, 2016
  2. self-assigned this
    on Mar 8, 2016
  3. paulmolluzzo commented on Mar 8, 2016

    @paulmolluzzo
    Contributor

    I'm about to make a PR, but I want to call out something this issue highlights:

    It is not visible when looking at a specific commit reference like https://github.com/sindresorhus/pageres/blob/511d29f6c5a9b5438bd85cefe15ec6fa8074e227/contributing.md

    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.

  4. hkdobrev commented on Mar 8, 2016

    @hkdobrev
    ContributorAuthor

    @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.

  5. paulmolluzzo commented on Mar 8, 2016

    @paulmolluzzo
    Contributor

    @hkdovrev you bet! The point I was making was why two similar scenarios behaved differently. That's all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions