I don't think so : http://zkfiddle.org/sample/2iraa2u/1-forwarding
chillworld ( 2016-02-09 14:22:23 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I've a combobox showing autocompletion.
I've added a listener for both onOK and onChange that throw the same event.
Is there a way for me detect when onChange and onOK are getting thrown at the same time so i don't get double event thrown?
Something like stopPropagation() that I could call.
Hello WilliamB,
Between us maybe you should not trigger both events, but if you apply the logic above it will work.
Best Regards,
Darksu
Well It's weird, if I do not add a "onOK" listener, the "onChange" event listeners is not triggered when i press Enter.
If I add a "onOK" listener, the "onChange" event listeners triggered when i press Enter.
So I just went and added a listener onOk that does nothing just to trigger onChange ...
Alright, I'm back on that issue.
I want that if the user press ENTER it triggers an event. Since the field is an autocomplete one, enter can trigger onChange.
But mouse click can also trigger onChange
I want to trigger the event whenever onChange or onOk is thrown BESIDE when the onOk also will trigger an onChange.
Is there no cleaner way to do this than to add a timer?
I don't think so : http://zkfiddle.org/sample/2iraa2u/1-forwarding
chillworld ( 2016-02-09 14:22:23 +0800 )editAsked: 2015-10-22 17:54:12 +0800
Seen: 50 times
Last updated: Jan 07 '16