textbox number decimalplaces selected text not cleared on decimal entry

UNCONFIRMED
Unassigned

Status

()

Core
XUL
P5
normal
UNCONFIRMED
10 months ago
5 months ago

People

(Reporter: Josh Nijenhuis, Unassigned)

Tracking

54 Branch
Points:
---

Firefox Tracking Flags

(firefox57 wontfix, firefox58 wontfix, firefox59 fix-optional)

Details

(Reporter)

Description

10 months ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Build ID: 20170414022702

Steps to reproduce:

1. define element like this<textbox id="testdecimal" type="number" decimalplaces="5"/>
2. then select all text with Ctrl+a 
3. type decimal point
text does not clear and replace with decimal

if you Ctrl+a and then delete the text and then hit decimal point it does allow decimal there...

if you delete the decimal point in the default text 0.0000 so its 00000, select all the text and then hit decimal. it does clear it.

Seems to be that the code just checks to see if there is a decimal point in the field and if so ignore the decimal key input regardless of it being selected and the original one would have been deleted and replaced...


Actual results:

the text did not clear


Expected results:

the text should have cleared when decimal is entered when text is selected.

Updated

7 months ago
status-firefox57: --- → wontfix
Priority: -- → P5

Updated

5 months ago
status-firefox58: --- → wontfix
status-firefox59: --- → fix-optional
You need to log in before you can comment on or make changes to this bug.