Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky sidebar #29

Merged
merged 1 commit into from
May 18, 2022
Merged

Fix flaky sidebar #29

merged 1 commit into from
May 18, 2022

Conversation

nicholasray
Copy link
Contributor

dispatchEvent('click') won't work as desired on label elements unless an event
handler is attached like checkboxHack.js adds. Because the menuState code could
execute before the checkboxHack.js code executed, a race condition was possible
where the mobile sidebar failed to show. Using .click instead avoids this race
condition.

`dispatchEvent('click')` won't work as desired on label elements unless an event
handler is attached like checkboxHack.js adds. Because the menuState code could
execute before the checkboxHack.js code executed, a race condition was possible
where the mobile sidebar failed to show. Using `.click` instead avoids this race
condition.
@nicholasray nicholasray merged commit 8d45bcc into main May 18, 2022
@nicholasray nicholasray deleted the fix-flaky-mobile-sidebar branch May 18, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant