Skip to content

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.

@github-actions
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
@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

3 participants