Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

observe_field does not use :on option

#1088

According to the documentation it is possible to specify a :on option like focus or blur. But no matter what you use, it uses only the onchange behaviour. This seems to be an old bug as there are many forum entries about this topic.

Reported by grosem · September 22nd, 2008 @ 11:25 AM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
    Frederick Cheung

    This isn't a rails bug, really. The ability for prototype's Form.Element.EventObserver to observe specific events was actually removed over 2 and a half years ago, in this commit. Hard to tell whether this was intentional.

    Anyway if you want it back, I suggest you take it up with the prototype folks. In the mean time we should probably remove all mention of :on from the code/docs as it's just confusing people

    December 21st, 2008 @ 12:09 PM

  2. grosem
    grosem

    I don't need this feature really anymore, so I would suggest as well to delete it from the rails documentation as it was really confusing.

    December 21st, 2008 @ 12:31 PM

  3. Repository
    Repository
    • State changed from new to resolved

    (from [40247a8cbb1ec735ccd4d8490043345b86af31cc]) Remove observe_field :on option as prototype no longer supports it [#1088 observe_field does not use :on option state:resolved] http://github.com/rails/rails/co...

    December 21st, 2008 @ 04:07 PM