Skip to content

TypeError: undefined is not an object (evaluating 'this.l[e.type+!1]') #4258

@kristersd

Description

@kristersd

Describe the bug
Preact eventsProxy throws a run-time error when this._listeners is not present on the DOM node.

To Reproduce

  1. Go to Preact REPL on Safari.
  2. Mouse over and mouse leave the example elements.
  3. Observe error after couple tries.

Device
I was able to reproduce it consistently while using Safari 17.

Safari Version 17.0 (18616.1.27.111.22, 18616)

Expected behavior
Preact does not throw an error, if unable to access this._listeners inside event listener.

Screen.Recording.2024-01-04.at.18.27.20.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions