Skip to content

showWhen/hideWhen + [hidden]="" will fail #5836

Closed

Description

@SP1966

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

Activity

  1. added this to the 2.0.0-beta.5 milestone on Mar 22, 2016
  2. added a commit that references this issue on Apr 15, 2016
    5692abe
  3. brandyscarney commented on Apr 15, 2016

    @brandyscarney
    Member

    Thanks for the issue! This will be fixed in the next release 2.0.0-beta.5. 😄

  4. locked and limited conversation to collaborators on Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions