Skip to content

Console Warning: Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. #444

@ecuellog

Description

@ecuellog

Jodit Version: 3.4.15

Browser: Chrome
OS: Linux

Code

<html lang="en">
<head>
  <meta charset="utf-8">
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jodit/3.1.39/jodit.min.css">
  <script src="//cdnjs.cloudflare.com/ajax/libs/jodit/3.1.39/jodit.min.js"></script>
</head>

<body>
  <textarea id="editor"></textarea>
</body>
</html>

Expected behavior:
Not get the warning

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>

Actual behavior:
Getting the warning

[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>

I believe this is causing issues on jodit-react when having other inputs on the same component. When holding down a key on a different input, the subsequent keys don't show until after you release the key + 1 sec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions