View Full Version : Calling toggle() on Ext.field.Toggle doesn't fire change event
24 Jul 2012, 5:55 AM
Is there any reason that the toggle() method of the Ext.field.Toggle doesn't fire the change event, but manually clicking the field does fire that event? Is there a different event I could listen to that is fired when an update happens regardless of if it happened from a user-initiated change or a programmatic change?
24 Jul 2012, 6:23 AM
I don't see any other events that can work for this. I'm guessing for right now you can fire the change event when you call toggle(). Or look at the Toggle's source and override it.
24 Jul 2012, 7:00 AM
Yeah right now I'm manually firing the change event, but that's pretty hacky :s It seems weird to even expose a public API for interacting with a control if it doesn't behave the same way as when a user interacts with it.
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.