Closed mtycholaz closed 3 days ago
@ArakTaiRoth Look into after the Svelte4 Upgrade is pushed to see if it's still an issue
Don't pick this up. I've tested and can't replicate anymore with the new Svelte upgrade. I've spoken to @mtycholaz about this and he'll be testing as well himself to confirm.
I am also unable to replicate this when using the current alpha branch
Closing, as that's 2 people that are no longer able to replicate.
Describe the bug
We created a component that uses the
goa-app-header
component. We're using the Angular<ng-content></ng-content>
element so that we can use our component in multiple areas of the app. We've noticed that the menu breaks when in mobile view. Adding a dummy element appears to fix the issue.@abgov/angular-components ^2.5.0 @abgov/web-components ^1.18.0
Provide Code
To Reproduce
shared-header
component (see above code)Relevant console log output
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Edge, Mobile Android, Mobile iOS
Additional info
From Dustin: This is likely an issue with this code specifically in our
AppHeader.svelte
:Because the div in mobile mode is being rendered with a
display:none
around it. Likely because getting the variable back that's being checked in thengIf
is taking longer.Update 2024-01-22
Source of the problem appears to be the
*ngIf
on the<ng-container>
element within the header