-
Notifications
You must be signed in to change notification settings - Fork 772
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
selector fxHide.xs doesn't work #62
Comments
@skined90 - please provide a CodePen or Plunkr to demonstrate the issue.
|
Here is the plunker https://plnkr.co/edit/h4ZSa0YI9QruCD5MFNDo?p=preview The first div has a fxHide.xs but it doesn't hide when I resize screen to be smaller than 599px. You can try with any other suffix (sm, md, lg) |
So you encountered a KNOWN bug #59. The fix is to add the default API also with the responsive one(s):
|
Refs #59 |
Fixed in Angular SHA 881eb894b: will be available in Angular v4.0.0-beta.2. |
Also liable in Angular v2.4.1 |
Reopening to add tests. |
I am using Angular 2.4.4 and flex-layout 2.0.0-beta.3 but it seems like this still isn't working. I guess having to always use 2 attributes to simply hide an element for a given breakpoint isn't intended?
In this example, the need for Also, binding like the following still yields the known angular error (though it should have been fixed in Angular 2.4.2 according to the release notes?):
|
* fix(fxHide,fxShow): fix standalone breakpoint selectors * Many directive selectors were missing a `,` separator between then xs and gt-xs breakpoints * fxShow, fxHide preserve and restore the element's original display CSS style * added more tests standalone breakpoint selectors, disabled selectors, and deactivated mediaQueries fixes #62, closes ##59. * fix(api): add missing comma-delimiter in breakpoint selectors * add test to use md breakpoint via `fxHide.md` * fix(fxShow, fxHide): restore proper display mode when not active The fxHide and fxShow should not change the display mode to 'flex'. Instead the display mode (when not 'none') should be the default (=== 'block') or the explicitly assigned display mode for that element. Fixes #105.
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. |
fxHide.[any-size] doesn't work (It doesn't hide an element)
The text was updated successfully, but these errors were encountered: