PDA

View Full Version : [CLOSED] [2.0-m1] Possible bug in CheckBox event handling?



moldoe
11 May 2009, 6:35 AM
Hi,

I'm not sure if this is a bug or not, but please hear me out.
When you check/uncheck a CheckBox on a form the Change event is not fired until focus on that Checkbox is lost(when onBlur() is called). The onClick() method from CheckBox doesn't fire the Change event but instead calls setValue(b) which it may fire the Change event, but only if the field fireChangeEventOnSetValue is set to true (by default is false).
Is this the right behaviour?

I'm using Windows XP, Hosted Mode.

Thanks,

Daniel

sven
11 May 2009, 6:36 AM
Yes it is correct, as in any other field.

moldoe
11 May 2009, 7:22 AM
I just discovered some inconsistent behavior in Change event firing when I click on the box label instead of the box itself.

In IE7 if I click on the label, the CheckBox changes it's state, but when focus is lost the Change event is not fired.

On FF 3.0 when I click on the label, the CheckBox changes it's state and also fires Change event immediately(before I move away focus from the field).


Daniel