cgross / angular-busy

Show busy/loading indicators on any element during $http requests (or any promise).
http://cgross.github.io/angular-busy/demo
MIT License
1.44k stars 256 forks source link

cgBusy not blocking interaction with button when cgBusy is applied directly to button #34

Closed LRFalk01 closed 10 years ago

LRFalk01 commented 10 years ago

Button click starts promise that puts a cg-busy on the button, but button is still clickable.

I think this is something with inline-block styling. http://plnkr.co/edit/l7A83Yp1uWWc62VnQ9IS?p=preview

cgross commented 10 years ago

Angular-busy isn't designed to be put directly on a button element. Its intended to be put on a container not a form element. If you put it on a container it should prevent that button from being clickable.

LRFalk01 commented 10 years ago

Thanks for the quick reply.