Open
Bug 156090
Opened 23 years ago
Updated 3 years ago
onclick fires for text input after drag-out
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
NEW
People
(Reporter: ben_b, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
|
365 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
BuildID: 2002053012
My understanding of a click event is that a complete cycle of down and up on
the mouse button has to happen within the confines of the object receiving the
click. Mozilla will fire a click event even if you start by clicking down
within the object (in my case a TEXTAREA), hold the mouse button down as you
drag outside of the object, and then let go.
Reproducible: Always
Steps to Reproduce:
1.use the following example file...
-----------------begin html source--------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HMTL>
<HEAD>
<TITLE>junk</TITLE>
<SCRIPT LANGUAGE=JavaScript>
<!--
function clickTest()
{
alert("click");
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<TEXTAREA ROWS=4 COLS=72 READONLY onclick="clickTest();">test</TEXTAREA>
</FORM>
</BODY>
</HTML>
---------------------end html source----------------------------
2. open it in Mozilla.
3. click on the textarea and hold the mouse button as you drag outside of it's
bounderies.
4. let go of the button outside the textarea.
Actual Results: the onclick event fired
Expected Results: onclick should not fire
IE 5.5 does this properly (doesn't fire onclick unless the complete cycle of
down and up is performed within the control), every other programming
environment I've ever worked with has treated clicks the same way. Maybe I'm
wrong on this but I've always been under the impression that a click event had
a very specific definition of the whole click cycle happening without leaving
the object.
Also, I've listed this bug as just "Major" but it has currently stopped
progress on my project. I didn't use the "Blocker" status because I don't
believe it is affecting a large group of users as much as it is me.
Comment 1•23 years ago
|
||
This bug was also mentioned in bug 40070 comment 6.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•23 years ago
|
Summary: onclick fires when a true click event hasn't occurred. → onclick fires for text input after drag-out
Comment 2•23 years ago
|
||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> I think this is related to bug 185924
Jonathan marked that WFM in 2006. But as far as I can tell this still fails. Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4 (.NET CLR 3.5.30729)
Do you still see this?
Assignee: joki → nobody
QA Contact: vladimire → events
Comment 6•4 years ago
|
||
This issue is still occurring on the latest versions of Firefox Nightly 95.0a1 (2021-10-08), beta 94.0b3 and release 93.0.
Not reproducible on Chrome or Edge.
Setting a severity of S3.
Severity: major → S3
Comment 7•3 years ago
|
||
I see it's also happening on <input type='text'/> elements. Possibly others?
You need to log in
before you can comment on or make changes to this bug.
Description
•