Skip to content

releases-tab sometimes doesn't flow into overflow hamburger menu #3347

Closed

Description

@fregante

This is due to a race condition

  1. Be on any (responsive) page
  2. Resize the window

Sometimes it disappears, sometimes it doesn't:

This might be due to the tab being added after GitHub looks for the tabs, so the DOM element should probably be added before the API call, hidden, and then unhidden/removed as necessary.

Activity

  1. self-assigned this
    on Sep 25, 2020
  2. fregante commented on Sep 25, 2020

    @fregante
    MemberAuthor

    This might be the code responsible for this:

    p(".js-responsive-underlinenav", {
    	constructor: HTMLElement,
    	subscribe: e=>{
    		const t = e.querySelectorAll(".js-responsive-underlinenav-item");
    		return async function(e, t) {
    			await ge,
    			Os(e, t)
    		}(e, t),
    		ae(window, "resize", ()=>Os(e, t))
    	}
    })

    p is probably selector-observer and as soon as it finds the menu, it selects the items in it. releases-tab might not be in there yet.

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