Skip to content

ElementEvents.subscribe set useCapture to true by default, which is not standard #657

@sebastien-roch

Description

@sebastien-roch

I'm submitting a bug report

  • Library Version:
    master

  • Language:
    all

Current behavior:
When using EventElements.subscribe, the listener will be set with useCapture = true, which is not the standard behavior of the native addEventListener() function and thus confuses the developer.

  • What is the expected behavior?
    EventElements.subscribe (and subscribeOnce) should use set useCapture to false by default.

  • What is the motivation / use case for changing the behavior?
    Mimic native API of the browser: addEventListener would set useCapture to false if not passed in arguments.

Metadata

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