This project is archived and is in readonly mode.

#1088 ✓resolved
grosem

observe_field does not use :on option

Reported by grosem | September 22nd, 2008 @ 11:25 AM | in 2.x

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.

Comments and changes to this ticket

  • Frederick Cheung

    Frederick Cheung December 21st, 2008 @ 12:09 PM

    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

  • grosem

    grosem December 21st, 2008 @ 12:31 PM

    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.

  • Repository

    Repository December 21st, 2008 @ 04:07 PM

    • State changed from “new” to “resolved”

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Tags

Referenced by

Pages