Skip to content

bug: Using ng-switch directive with ion-label is not firing the focus event on a input field. #4778

@ghost

Description

Type: bug

Platform: mobile browser

Basically, the problem is that the input field is not receiving the focus when we click on a <ion-label> or <span class="input-label">. That's my code:

<ion-input class="item item-input" ng-switch="platform">
    <ion-label>User</ion-label>
    <input ng-switch-when="android" type="tel" name="user" />
    <input ng-switch-default type="text" name="user" />
</ion-input>

If i remove the ng-switch directive and let only one input field, the focus event works normally after clicking the label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions