Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5179 (new defect)

Opened 2 years ago

Last modified 11 months ago

Ajax.autocompleter: onChange event bug (Firefox 1.5.0.3)

Reported by: ward@pong.be Assigned to: thomas@fesch.at
Priority: normal Milestone:
Component: script.aculo.us Version:
Severity: major Keywords:
Cc:

Description

The problem appears when leaving the autocompleted input text element.

When selecting something from the autocompleter dropdown, if you _click_ the item you want, the onChange event is generated right then and there. Leaving the box generates no further onChange event.

If you select something from the autocompleter dropdown by using the arrow keys, and then hit return, there is no onChange event. The onChange event is only generated _when the text element loses focus_.

This is Firefox 1.5.0.3. I've tried Konqueror 3.5.2, which behaves the same in the first case, but does NOT generate the onChange event in the second case.

Ideally, the onChange event would be generated at the same time for both ways of selection.

Change History

(in reply to: ↑ description ) 11/08/06 12:37:41 changed by javinto

Some additional information that may relate to this problem: If I use the EventObserver (observe_field) on a autocomplete field this results in different behaviour regarding to the following versions of Firefox:

Firefox 1.5.0.7 & Firefox 2.0: - Typing directly whole item before autocomplete gets involved: event triggered - Typing item partially and selecting with mouse from autocomplete list: event NOT triggered

Firefox 1.5.0.7 - Typing item partially and selecting with cursor from autocomplete list: event triggered

Firefox 2.0: - Typing item partially and selecting with cursor from autocomplete list: event NOT triggered

Replying to ward@pong.be:

The problem appears when leaving the autocompleted input text element. When selecting something from the autocompleter dropdown, if you _click_ the item you want, the onChange event is generated right then and there. Leaving the box generates no further onChange event. If you select something from the autocompleter dropdown by using the arrow keys, and then hit return, there is no onChange event. The onChange event is only generated _when the text element loses focus_. This is Firefox 1.5.0.3. I've tried Konqueror 3.5.2, which behaves the same in the first case, but does NOT generate the onChange event in the second case. Ideally, the onChange event would be generated at the same time for both ways of selection.

06/25/07 09:33:35 changed by dkubb

I just came across this too. It appears to be a browser specific bug: Mozilla – Bug 359387.