Skip to content

Unable to preventDefault inside passive event listener invocation. #5125

Open
@ning-tangxi

Description

First of all, thank you for your open-source project; it has been incredibly helpful!

I am currently encountering an issue where the console reports: "Unable to preventDefault inside passive event listener invocation." This is due to a recent browser update, which causes a conflict between options.passive = true and ev.preventDefault(), leading to an error with the mousedown event.

The issue is located in your code at: Terminal.ts:774 and Terminal.ts:544.
They use the same utility function: addDisposableDomListener

Have a nice day!

Details

  • Browser and browser version: Microsoft Edge(127.0.2651.98),Google Chrome(127.0.6533.100)
  • OS version: win11
  • xterm.js version: the last

##Screenshot
20240812-184552

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions