Skip to content

clean-discussion-sidebar isn't re-applied after changes to the sidebar #2333

Closed

Description

@fregante
  1. Visit an issue
  2. Post a comment or add a label
  3. Notice that the sidebar is dirty again

asd

There should either be an even listener on the ajaxed element (it's probably called socket:message) or a MutationObserver

Activity

  1. added
    small
    on Aug 14, 2019
  2. sharkykh commented on Aug 15, 2019

    @sharkykh
    Contributor

    It tries to observe .discussion-sidebar (which is no longer available).
    https://github.com/sindresorhus/refined-github/blob/2e4a24d3957c205c7bc49525c69e1fa08593d2ca/source/features/clean-sidebar.tsx#L79
    I wonder if simply changing it to observe #partial-discussion-sidebar instead would be enough to fix it.
    Looks like the answer is no...

  3. fregante commented on Aug 15, 2019

    @fregante
    MemberAuthor

    I wonder if simply changing it to observe #partial-discussion-sidebar instead would be enough to fix it.
    Looks like the answer is no...

    So in that case this also won't work? #2336

  4. sharkykh commented on Aug 15, 2019

    @sharkykh
    Contributor

    Good point.
    I just tried #2336 again, and after the sidebar is updated, the button is gone.
    That's unfortunate.

  5. sharkykh commented on Aug 15, 2019

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

    acceptedbugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions