Closed
Bug 528926
Opened 16 years ago
Closed 15 years ago
Cannot prevent bubbling of click inside of a label element
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: flack, Unassigned)
Details
Attachments
(1 file)
|
511 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
I have a label containing two textareas, the first of which is invisible. When I click with the mouse in the second textarea, it loses focus as soon as I release the mouse. The reason for this seems to be that the click bubbles up to the enclosing label element which then tries to focus the first input element found (which is invisible).
I'll upload a testcase if I figure out how
Reproducible: Always
Steps to Reproduce:
Click textarea in testcase
Actual Results:
textarea loses focus as soon as the mouse is released
Expected Results:
textarea has focus
Added testcase which was tested to work in Opera 10.01 (Mac), Safari 4.03 (Mac) and IE8 (Win)
Comment 3•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2b3pre) Gecko/20091114 Namoroka/3.6b3pre
This seems fixed in latest Namoroka and Minefield. Can you please retest?
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/
Assignee: general → nobody
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Component: JavaScript Engine → DOM: Events
QA Contact: general → events
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•