Closed Bug 398974 Opened 17 years ago Closed 17 years ago

OnChange event not fired after typing some chars and then selecting one item from the autocomplete list.

Categories

(Firefox :: Address Bar, defect)

x86
All
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 388558

People

(Reporter: pu.medvidek, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5

This is a serious bug that prevents forms to behave correctly. This way the onChange event of an input field is not triggered when a user uses autocomplete to enter a value. I've reproduce the bug in 2.0.0.8/rc1 (nightly build Sep 7th 2007).

Reproducible: Always

Steps to Reproduce:
1. Text input field with an onChange event handler.
2. Fill in value, leave input (event fires), post.
3. Open again.
4. Fill in the same value, leave input (event fires), post.
5. Open again.
6. Fill in a beginning of the same value, select the same value from the autocomplete list, leave input (event DOES NOT fire), post.
Actual Results:  
The onChange event is never fired in step 6.

Expected Results:  
The onChange event should be fired in step 6.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8

I experience the exact same problem. This must be addressed ASAP as it's breaking validation of information in forms.

Meanwhile I have to use onblur instead to fix the problem, but that results in other disadvantages.
OS: Linux → All
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.