.button( 'disable' ) not actually disabling the button.

.button( 'disable' ) not actually disabling the button.

Hello, I don't know if this is the expected behavior. Also, I'm re-posting because I can't find my last post. I apologize if it's wrong.

Well, in ui 1.8rc3, i call the disable method for a button element but despite it shows the proper styling for a disabled element, it still responds to click event. If I inspect the element with firebug on ff3.6 i get:

<button id="btnEliminar" type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-button-disabled ui-state-disabled ui-state-focus" role="button" aria-disabled="true">
<span class="ui-button-text">Eliminar</span>
</button>

So, am I supposed to disable the button by myself or this is indeed a problem...

Thanks in advance