Skip to content

[Bug]: Support type number for fluent-text-input #35943

@MarvinKlein1508

Description

@MarvinKlein1508

Component

TextInput

Package version

3.0.0-rc.10

@microsoft/fast-element version

2.10.2

Environment

https://stackblitz.com/edit/typescript-aqfpjpi6

Current Behavior

When setting type="number" on the web component then you get the buttons for incrementing and decreasing the value. But the input does not except , or . as keystroke.

When I enter . the component will clear the value. My PC locale is de-de.

Expected Behavior

I expect the component to accept both characters to input decimal values just like the normal html input.

Reproduction

https://stackblitz.com/edit/typescript-aqfpjpi6

Steps to reproduce

  1. Click into the text field
  2. Try type 1.5 or 1,5
  3. Try the same for the native `input type="number" below

Are you reporting an Accessibility issue?

no

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions