-
Notifications
You must be signed in to change notification settings - Fork 772
fxHide doesn't work on page load #848
Comments
I have the same error |
This is a very unfortunate issue, not just because of the UX, but because it's a tricky fix. We have a case of competing directives, each with their own stake on the CSS |
I think I've got this patched in #881. Please build to make sure. If I don't hear back either way in the next week, I'll push it to the nightly builds (since it's not that far ahead of NPM, it shouldn't impact too many if it breaks something). |
@CaerusKaru I've built and tested the #881 and it fixed all the issues I have with the previous builds. I also didn't see anything broken while I'm testing it (we have a pretty big template that uses the Flex Layout so it's a nice visual testing bed for us) Thank you for your hard work! |
@srcn how did you go about building/testing? The package name is |
@adamdport I simply downloaded the branch that has the #881 in it, built it using npm run lib:build:aot and manually replaced the @angular/flex-layout from the node_modules directory with the |
I have the same issue, are you sure that the problem is fixed? |
I'm on version |
I am also getting the same issue, version 7.0.0-beta.24 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report
What is the expected behavior?
fxHide must hide the content on page load.
What is the current behavior?
It doesn't work as expected on page load.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-gqvksp
There is no
fxLayout
on the parent element, and because of that,fxFlex
putsdisplay: flex
to the parent item in order to work correctly and that overrides thedisplay: none
fromfxHide
.If I put
fxLayout="row"
to the parent element,fxHide
works as expected. It also works correctly when resizing the window.What is the use-case or motivation for changing an existing behavior?
It's a bug.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
flex-layout 6.0.0-beta.17 & beta.18, Angular 6.x, Chrome (MacOS), Firefox (MacOS) & Safari (MacOS)
Is there anything else we should know?
Related issues: #812 , #814
The text was updated successfully, but these errors were encountered: