Skip to content

prevent-link-loss hides the comment box in v26.8.8 #9955

Closed

Description

Description

With:

Image

Without:

Image

How to replicate the issue + URL

Any issue, like this one.

Extension version

26.8.8

Browser(s) used

Brave 1.93.129 Chromium: 151.0.7922.71 (Official Build) (64-bit)

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.
Pinned by fregante

Activity

  1. justanotheranonymoususer commented on Aug 8, 2026

    @justanotheranonymoususer
    Author

    Other things:
    Issue happens with or without a token.
    Comment box shows up and then is removed after a moment.
    The bisect ext feature didn't help, I had to bisect manually like a caveman.

  2. fregante commented on Aug 8, 2026

    @fregante
    Member

    Ow sh. Are you sure it's that feature and it's not just CSS? I'm gonna disable it preemptively

  3. added a commit that references this issue on Aug 8, 2026
  4. justanotheranonymoususer commented on Aug 8, 2026

    @justanotheranonymoususer
    Author

    I don't know, all I can say is that I created a new browser profile to test and it's the same. Still maybe something on my side, who knows. I was surprised nobody wrote about it before me.

  5. fregante commented on Aug 8, 2026

    @fregante
    Member

    The feature's code is pretty straightforward, it exclusively mounts a component. Svelte's mount() only appends elements, unlike React's.

    My guess is that maybe somehow GitHub's component is breaking as a consequence of that?

  6. justanotheranonymoususer commented on Aug 8, 2026

    @justanotheranonymoususer
    Author

    If I remove display: flex; from .MarkdownEditor-module__container__H4O8J, it fixes it. If I return it back, it stays fixed. Next refresh breaks it. No idea if that helps.

  7. fregante commented on Aug 8, 2026

    @fregante
    Member

    That's somewhat of good news since it means it can be fixed via CSS alone. I'll take a look later

  8. Jiralite commented on Aug 8, 2026

    @Jiralite
    Contributor

    Chiming in to say this also affects reviews since I do not see it mentioned:

    Image

    For me, using the bisect feature for this worked.

    Also, with prevent-link-loss enabled, the comment box on this issue is hidden, but it is visible for me on discord/discord-api-docs#8531.

  9. fregante commented on Aug 8, 2026

    @fregante
    Member

    So this is 100% triggering some Chrome bug probably related to container queries. display:flex doesn't actually make a difference, but toggling it on and off forces Chrome to correctly recalculate the size of the elements.

    I also found that a plain target.append('hello') is enough to trigger the bug, but using await delay(100) before doing that will prevent it.

    Strangely enough, I also was unable to identify the feature via bisect, so I thank you for locating it manually.

    Hopefully not many people are affected by it thanks to the hotfix. I'll also look for some CSS hotfix to trigger the recalculation.

  10. added a commit that references this issue on Aug 8, 2026
  11. fregante commented on Aug 8, 2026

    @fregante
    Member

    Current status: prevent-link-loss disabled entirely, CSS hotfix also added.

    If you're experiencing this issue, visit the options page and click "Update hotfixes" in the hotfixes section.

    You can also alternatively use this CSS, but you shouldn't need to:

    Manual CSS
    /* https://github.com/refined-github/refined-github/issues/9955 */
    [class*="MarkdownEditor-module__container"] {
        animation: rgh-prevent-link-loss-bugfix 1s 100ms infinite;
    }
    @keyframes rgh-prevent-link-loss-bugfix {
        50% {
            display: block
        }
    }

    Permanent fix

    Not sure, I can keep this CSS in the extension until the bug is fixed.

    Now I'm curious to know why the bisect can't locate it.

  12. added
    Please! ♥︎
    on Aug 8, 2026
  13. changed the title [-]`prevent-link-loss` hides the comment box starting from today[/-] [+]`prevent-link-loss` hides the comment box in v26.8.8[/+] on Aug 8, 2026
  14. fregante commented on Aug 12, 2026

    @fregante
  15. pinned a comment and unpinned a comment on Aug 12, 2026
  16. jakeatoms commented on Aug 12, 2026

    @jakeatoms

    Not sure if related to this issue directly, but this feature is also preventing the text field from getting focus when I click the "+" button on a line to add a comment. When disabled, I can immediately start typing my comment. When enabled, I am forced to select the text field with my cursor first.

  17. pinned a comment and unpinned a comment on Aug 13, 2026
  18. github-actions commented on Aug 24, 2026

    @github-actions
  19. fregante commented on Sep 5, 2026

    @fregante
    Member

    @jakeatoms did v26.9 fix that issue for you? If not, please open an issue with a screencast (e.g. via LICEcap) showing the problem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Please! ♥︎acceptedbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions