Closed Bug 162936 Opened 22 years ago Closed 22 years ago

onFocus keeps on firing.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 58441

People

(Reporter: desale, Assigned: joki)

Details

Attachments

(1 file)

This is MacOSX specific. onFocus event occurs 3 times where it should occur only once. BUILDS: 2002-08-13-05-1.0 STEPS TO REPRODUCE: 1] Load Testcase I'm going to attach. 2] click on any input. EXPECTED RESULTS: you should see alert showing 'onFocus Event Was Fired' & you should see this alert only once. ACTUAL RESULTS: you see alert showing 'onFocus Event Was Fired' three times.
Attached file Testcase (deleted) —
"Three times" is an understatement.. i had to kill mozilla to get away from that alert..
This happens because the alert taking focus blurs the input and the input gets refocused when the alert is taken down. Isn't there a bug on eliminating that behavior?
Whiteboard: DUPEME
Updating Summary. onFocus keeps on firing. This is occuring on Anchor too. cc'ing moied
Summary: onFocus occurs 3 times where it should occur only once. → onFocus keeps on firing.
This works for me (1 focus alert per click in any input field in the attached testcase) with a trunk build from today's source. However (comment 3) multiple focus and blur events are being fired for the document. See the testcase in bug 164686 which doesn't confuse things with Alerts. The end of bug 164686 comment 2 describes event doubling (and tripling!)
*** This bug has been marked as a duplicate of 58441 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Hardware: PC → Macintosh
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
QA Contact: rakeshmishra → trix
verifying dupe
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: