Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

md-select forces number-like string values to be numbers #4615

@richardszalay

Description

@richardszalay

PR #3560 introduced a breaking change that causes number-like values (eg. "0930") to be parsed as numbers.

The problem is the PR uses isNaN(value) to determine whether the value is a string, but isNaN("0930") returns true. I propose modifying this to use typeof value == "number" instead, as it resolves correctly against the above test values.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions