pure-css/pure

purecss.io menu is not always being displayed

matrs opened this issue · 3 comments

matrs commented

Thanks for these modules, I'm learning about css and js and this looks very interesting. Maybe this bug is related in some way to the library. I can say that it's present in the side menu example too.

Description

Sometimes, when clicking/tapping the hamburger icon, nothing happens, although you can see that the animation is getting triggered. I'm sharing a short recording of Mozilla devtools. This happens in up to date browsers in desktop and mobile (firefox 77 in Linux and chrome 83 in Android 7 and Linux)

Expected behavior

When clicking/tapping the hamburger icon, the menu should open

Actual behavior

When clicking/tapping the hamburger icon, nothing happens, although you can see the animation is getting triggered

Short video:
https://imgur.com/a/FhmztKD

@matrs Thanks for the issue. I saw this issue when converting over to Docusaurus, but couldn't reproduce it consistently. I think it's something to do with how React handles the events and us trying to add manual event listeners too. But I'm not sure.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information.