Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kristersd opened this issue Jan 4, 2024 · 1 comment · Fixed by #4253
Closed

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

kristersd opened this issue Jan 4, 2024 · 1 comment · Fixed by #4253

Comments

@kristersd
Copy link

kristersd commented Jan 4, 2024

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
@marvinhagemeister marvinhagemeister transferred this issue from preactjs/preact Jan 4, 2024
@kristersd
Copy link
Author

kristersd commented Jan 4, 2024

@marvinhagemeister Thanks for transferring the issue to preact-www but this is not related to the REPL and happens inside preact source code. You can take the example code from REPL and reproduce it elsewhere.

@rschristian rschristian transferred this issue from preactjs/preact-www Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant