Dojo

dojo/fx/Toggler doesn´t disable buttons

I’ve used dojo/fx/Toggler to show/hide buttons (or any dom node) and it works fine, but if there’s a function linked to that node, this function is executed when you click on the node though this node is invisible. I don´t know if it is malfunction, or it is intended.