Skip to content

Cannot enter decimal value for number type #61

@aduth

Description

@aduth

Steps to reproduce:

  1. Navigate to "Numbers" tab in live demo
  2. Select and backspace Number field to clear it
  3. Once reset to 0, attempt to enter "3.14"
  4. Note that it is not possible

Expected cause:

When change event occurs upon entering the decimal value, the value "3." will cast to integer value 3, thus removing the decimal and preventing the user from entering their desired value.

In other words:

console.log( Number( '3.' ) );
// => 3

Metadata

Metadata

Assignees

No one assigned

    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