I too yesterday hit upon this problem. I notice that the bug has low priority, so a fix might be some way off. I just wanted to add that I work-around this issue like so:
button.click(function() {
button.removeClass("ui-state-focus ui-state-hover");
...
and that seems to nail it.