IfnotFr / PopConfirm

A simple action confirmation plugin for jQuery based on Twitter Bootstrap Popover
MIT License
99 stars 35 forks source link

removeAttr('onclick') not working in IE #20

Closed fmagron closed 9 years ago

fmagron commented 9 years ago

For hard onclick attribute the current code for removing onclick is not working in IE, resulting in onclick being triggered before the popup appears.

Instead of $(self).removeAttr('onclick');

Use $(self).prop("onclick", null);

See advice in https://api.jquery.com/removeAttr/

Cheers Franck

IfnotFr commented 9 years ago

Thanks, this is fixed on 623515d1c7e4a344cd6e271ce3eefa800c255958

Release : v0.4.3