malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

Blocking an anchor doesn't stop the user from clicking on that anchor #110

Open rwencel opened 9 years ago

rwencel commented 9 years ago

Block an anchor on the page, then click on it. It will trigger the anchor instead of being blocked.

I tried adding "click" to the bind function, but the handler function is still never called.

I updated blockOverlay with an onclick event handler that returns false and stopPropagation/preventDefaults to prevent the anchor from seeing the click, but that doesn't seem right.