Closed Bug 1774184 Opened 2 years ago Closed 2 years ago

input type=number allows letters

Categories

(Core :: Layout: Form Controls, defect)

Firefox 101
defect

Tracking

()

RESOLVED DUPLICATE of bug 1398528

People

(Reporter: gabriel_alves_44, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

type letters in a <input type="number" />

Actual results:

input allows letters to be typed

Expected results:

the input should only accept numbers or separators

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Form Controls' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

So this is a duplicate of bug 1398528.
As per bug 1398528 comment 3 - it's unfortunately not trivial to provide a correct behaviour, taking localization into account.
There is a JavaScript workaround as mentioned in bug 1398528 comment 26

Severity: -- → S3
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: