[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event.

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event.

aragusaragus Posts: 5Questions: 3Answers: 1

Hi,
When I am adding Autofill extension and activating it on my datatable, I am getting this error. I see there was a previous thread which linked to a 404 Github article.
Here is the stack trace:

add @ jquery-3.5.0.min.js:1588
(anonymous) @ jquery-3.5.0.min.js:1553
each @ jquery-3.5.0.min.js:146
each @ jquery-3.5.0.min.js:75
ke @ jquery-3.5.0.min.js:1552
on @ jquery-3.5.0.min.js:1771
enable @ datatables.min.js:38
_constructor @ datatables.min.js:38
r @ datatables.min.js:38
(anonymous) @ datatables.min.js:38
dispatch @ jquery-3.5.0.min.js:1615
v.handle @ jquery-3.5.0.min.js:1577
trigger @ jquery-3.5.0.min.js:2617
(anonymous) @ jquery-3.5.0.min.js:2631
each @ jquery-3.5.0.min.js:146
each @ jquery-3.5.0.min.js:75
trigger @ jquery-3.5.0.min.js:2630
R @ datatables.min.js:28
Jt @ datatables.min.js:28
t @ datatables.min.js:28
(anonymous) @ datatables.min.js:28
each @ jquery-3.5.0.min.js:146
each @ jquery-3.5.0.min.js:75
w @ datatables.min.js:28
P.fn.DataTable @ datatables.min.js:28
(anonymous) @ sheet_config.js:63
e @ jquery-3.5.0.min.js:1179
t @ jquery-3.5.0.min.js:1185

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Yes, we don't yet have a fix to work around that warning, as we don't use passive event listeners yet. Indeed, jQuery itself doesn't yet. I will switch to using passive listeners at some point, but it causes other async complications, so it isn't a trivial thing to change and the performance impact for how we use it is negligible ((as far as I can tell).

    Allan

Sign In or Register to comment.