Hi.
I'm facing problem with executing onChanged handler while onChange handler cancels event,
is it normal behavior, or maybe it's a bug ??
here's an example:
tested on:
SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)
FF 16.0.1
Chrome 27,0,1453,116 m
I'm facing problem with executing onChanged handler while onChange handler cancels event,
is it normal behavior, or maybe it's a bug ??
here's an example:
Code:
DynamicForm form = new DynamicForm(); CheckboxItem checkbox = new CheckboxItem("test", "My CheckBox"); checkbox.addChangeHandler(new ChangeHandler() { @Override public void onChange(ChangeEvent event) { event.cancel(); } }); checkbox.addChangedHandler(new ChangedHandler() { @Override public void onChanged(ChangedEvent event) { SC.say("Why is this fired ?"); } }); form.setFields(checkbox);
SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)
FF 16.0.1
Chrome 27,0,1453,116 m
Comment