-
Notifications
You must be signed in to change notification settings - Fork 13.4k
showWhen/hideWhen + [hidden]="" will fail #5836
Copy link
Copy link
Closed
Milestone
Description
Short description of the problem:
When showWhen or hideWhen are used in addition to the [hidden]="" directive the component will be displayed even on the platform that it should remain hidden on.
For example, if hideWhen="ios" is used on a FAB button the FAB will not initially display on iOS. But if I add [hidden]="showFAB" to the button and then toggle the showFAB value using a button on iOS the FAB will be shown once the showFAB value is toggled back to true.
What behavior are you expecting?
A component with either showWhen or hideWhen should ignore the [hidden]="" directive so it won't be shown on the wrong platform yet still allows the component to be toggled on the correct platform.
Which Ionic Version? 2.x
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels