Open Bug 1377455 Opened 7 years ago Updated 2 years ago

textbox number decimalplaces selected text not cleared on decimal entry

Categories

(Core :: XUL, defect, P5)

54 Branch
defect

Tracking

()

UNCONFIRMED
Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- fix-optional

People

(Reporter: josh, Unassigned)

Details

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.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.