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

dasher.toggle event not fired the first time the user menu is opened (only on mobile) #15079

Open
Siderite opened this issue Apr 14, 2024 · 0 comments
Labels

Comments

@Siderite
Copy link

Exact URL of where the bug happened

Any lichess URL

Steps to reproduce the bug

  1. Open lichess in desktop mode
  2. Add a display logger to pubsub.emit and open the user menu - a dasher.toggle event is fired
  3. Open lichess on a mobile or with mobile emulation
  4. Add a display logger to pubsub.emit and open the user menu - a dasher.toggle event is NOT fired, but it is fired when the menu is closed and any reopening it from then on

What did you expect to happen?

I expected a dasher.toggle event whenever the menu is open or closed.

What happened instead?

Inconsistent behavior between mobile and desktop, probably related to MutationObserver.

Operating system

Windows 11

Browser and version (or alternate access method)

Brave, Kiwi

Additional information

No response

@Siderite Siderite added the bug label Apr 14, 2024
@Siderite Siderite changed the title Weird behavior on mobile dasher.toggle event not fired the first time the user menu is opened (only on mobile) Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant