Select onChange event

137 views
Skip to first unread message

mediavrog

unread,
Nov 21, 2010, 12:23:08 PM11/21/10
to Custom Form Elements
2010-01-04 16:41:43 CET by https://sourceforge.net/users/diellan/

I was having problems with a triggered event I had attached to a
select box, when I noticed that the module cfe.module.select.js
doesn't trigger a change event on the original select option if you
select by mouse (selecting by keyboard or via the updateOption
function works fine). It's an easy fix - adding
this.o.fireEvent("change"); to the change function just after it sets
the selectedIndex of the select object.

Is this a bug or intentional? If intentional, how would we add an
event to a select dropdown?

mediavrog

unread,
Nov 21, 2010, 12:23:20 PM11/21/10
to Custom Form Elements
Yep, this is a bug and not intended. Your fix is working and i'm going
to implement it in the next release. Thanks

On 21 Nov., 18:23, mediavrog <maik...@web.de> wrote:
> 2010-01-04 16:41:43 CET byhttps://sourceforge.net/users/diellan/
Reply all
Reply to author
Forward
0 new messages