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 #1185: NavMenu Collapse button behavior in SRR only woks once #1191

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

vnbaaij
Copy link
Collaborator

@vnbaaij vnbaaij commented Dec 22, 2023

Before this change:

  1. Run the project.
  2. Click the collapse button. -- it works now
  3. Click a menu item Home or Weather.
  4. Click the collapse button again -- it doesn't work.

For step 4 it actually did work, but the event was triggered twice, so a collapse was triggered which triggered an expand. For the naked eye nothing happened. With theis change the the adding of the eventlistener is moved to the onLoad function so it gets registered only once.

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1191.westeurope.3.azurestaticapps.net

@vnbaaij vnbaaij merged commit 1226c20 into dev Dec 22, 2023
4 checks passed
@vnbaaij vnbaaij deleted the vnbaaij/fix-1185 branch December 22, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: Collapse button doesn't work correctly in Fluent Blazor Web App template
2 participants