Skip to content

Fix race condition of `menu-expanded` and top nav

What does this MR do?

This MR fixes a race condition where the responsive menu redesign and the state of the top nav bar can become out of sync if the user starts clicking "Menu" right away.

Screenshots (strongly suggested)

How to test?

You'll need to enable the :combined_menu feature flag locally.

Before (on master) After (this MR)
20210609_before_race_condition 20210609_fix_race_condition

You'll notice in the Before, the top nav bar becomes out of sync with the menu's visibility. This is fixed now 🎉

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #301143 (closed)

Edited by Ezekiel Kigbo

Merge request reports