Thanks to visit codestin.com
Credit goes to github.com

Skip to content

set-default-repositories-type-to-sources: undefined is not an object (evaluating 'link.search') #3908

Description

@fregante

Screen Shot 1

  1. Open a PR like Update to next dom-chef #3904
  2. Visit the PR Commits tab
  3. Open the profile dropdown
    Screen Shot 3

This happens because:

  1. init is called on every ajax load
  2. init attaches a mutation handler
  3. when the user opens the dropdown, the handler fires twice, but the second time the selector no longer finds anything

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions