You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example: (found at Selectpicket.prototype defination ,line 388 of v1.11.2):
if (typeof id !== 'undefined') {
this.$button.attr('data-id', id);
$('label[for="' + id + '"]').click(function (e) {
e.preventDefault();
that.$button.focus();
});
}
should be replaced by
if (typeof id !== 'undefined') {
this.$button.attr('data-id', id);
$('label[for="' + id + '"]').on('click',function (e) {
e.preventDefault();
that.$button.focus();
});
}
Reason: JQuery's older versions are now hugely defavoured in latest CVS security scans and the accepted version 3.0+ has already deprecated .click() event shorthand. JQMigrate logs this warning.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Example: (found at Selectpicket.prototype defination ,line 388 of v1.11.2):
should be replaced by
Reason: JQuery's older versions are now hugely defavoured in latest CVS security scans and the accepted version 3.0+ has already deprecated .click() event shorthand. JQMigrate logs this warning.
Beta Was this translation helpful? Give feedback.
All reactions