Closed Bug 354697 Opened 18 years ago Closed 18 years ago

when clicking an autocomplete entry (dropdown menu item) for an previously filled input no event is triggered

Categories

(Toolkit :: Form Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 359387

People

(Reporter: personseb, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7

If you have an input in a form which you have already filled, and you want to re-enter the same data, a drop down box is proposed with previously filled data.
If you select this data WITH THE MOUSE, no event is triggered.

don't know if it's the intended behaviour, but it's very annoying as we cannot rely on an event to validate what the user has selected like we would have done if has typped in something (onkeypress for example).

Reproducible: Always

Steps to Reproduce:
load the HTML code below.
type some word, enter
re-type first letters of the word and clik on the drop down item with contains the word
Actual Results:  
no event is triggered (event are logged below the input)

Expected Results:  
at least one event

<html>
<body>
<script type="text/javascript">
<!--
function log(txt) {
	var html = document.getElementById('noticeaera').innerHTML;
	html = txt + '\<br\>' + html ;
	document.getElementById('noticeaera').innerHTML = html;
}

-->
</script>

<form>
<input id='remember_me' type="text"
	onblur="log('blur')"
	onchange="log('change')"
	onclick="log('click')"
	ondblclick="log('dblclick')"
	onfocus="log('focus')"
	onkeydown="log('keydown')"
	onkeyup="log('keyup')"
	onkeypress="log('keypress')"
	onmousemove="log('mousemove')"
	onmouseup="log('mouseup')"
	onmousedown="log('mousedown')"
	onmouseout="log('mouseout')"
	onselect="log('select')"

	>
</form>
<br><br>
<div id='noticeaera'></div>
</body>
</html>
The problem also occurs on Firefox 2.0.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0
Hello, I just tried to reproduce the bug in FireFox 1.5.0.7 in Windows XP using the HTML snippet.
I could not reproduce this problem on my workstation, the onchange event is triggered as expected. I tried because my web application uses this feature for populating other listboxes and works flawless with 1.5.0.7.
However, the bug occurs in Firefox 2.0 and I would really like to see somebody at least confirming this bug because it should be trivial to fix but it is very annoying for the users.

Like the previous poster, I can't confirm the bug in Firefox 1.5.0.7, but I see the same behavior in Firefox 2.0.

I can select the data with either the mouse or the keyboard and not trigger an onchange event.

--T
This is Bug 359387, duping this one to 359387, because 359387 is already confirmed and has a lot of people in cc

*** This bug has been marked as a duplicate of 359387 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: