Skip to content

bug: Input type number is not respected #7121

@davidruisinger

Description

@davidruisinger

Type: bug

Ionic Version: 2.x

Platform: all

Steps to reproduce:

  1. Create an ion-input with type="number"
  2. Add [(ngModel)] and (ngModelChange) to get the Value of the input
  3. Check the type of the value using typeOf(value)
  4. Type in a number into the input
    => Type is always a string

Expected behavior:
...
=> Type is a number.

See this plunk as an example:
https://run.plnkr.co/plunks/GHBFad/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions