Closed Bug 1211895 Opened 9 years ago Closed 5 years ago

input type="number", changing -moz-appearance causes blur event to fail

Categories

(Core :: Layout: Form Controls, defect)

40 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 981248

People

(Reporter: soderslatt, Unassigned)

References

()

Details

(Keywords: testcase, Whiteboard: [DUPEME?])

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 Build ID: 20150826023504 Steps to reproduce: 1. set up a <input type="number"/> 2. bind focus and blur events on <input> 3. change the -moz-appearance to textfield 4. change the -moz-appearance to number on focus 5. focused <input> 6. unfocused <input> link for ref: https://jsfiddle.net/soderslatt/6the33v3/ Actual results: focus event tiggers as expected, but blur event is not fired Expected results: Both focus and blur event should trigger
OS: Unspecified → Windows 7
Jonathan, should this be marked as a duplicate of bug 981248? Based on that one's summary, I'd say yes, but based on the STR, I'm not so sure.
Component: Untriaged → Layout: Form Controls
Flags: needinfo?(jwatt)
Keywords: testcase
OS: Windows 7 → All
Product: Firefox → Core
Hardware: Unspecified → All
Whiteboard: [DUPEME?]
See Also: → 1057858
Maybe. Let's just add it to the See Also field for now though.
Flags: needinfo?(jwatt)
See Also: → 981248

(In reply to soderslatt from comment #0)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101
Firefox/40.0
Build ID: 20150826023504

Steps to reproduce:

  1. set up a <input type="number"/>
  2. bind focus and blur events on <input>
  3. change the -moz-appearance to textfield
  4. change the -moz-appearance to number on focus
  5. focused <input>
  6. unfocused <input>

link for ref: https://jsfiddle.net/soderslatt/6the33v3/

Actual results:

focus event tiggers as expected, but blur event is not fired

Expected results:

Both focus and blur event should trigger

I couldn't reproduce the issue on Ubuntu 18.04. That is, both, the "focus" and the "blur" events are triggered. Not a surprise, since the issue was reported several years ago. Probably it makes sense to close this issue as invalid.

Moreover, note the new "appearance" (not "moz-"prefixed) doesn't include "number-input".

Fixed by bug 981248.

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