IfnotFr / PopConfirm

A simple action confirmation plugin for jQuery based on Twitter Bootstrap Popover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

removeAttr('onclick') not working in IE

fmagron opened this issue · comments

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

Thanks, this is fixed on 623515d

Release : v0.4.3