You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add an event handler to an element that has spread props, placing another prop after the event handler causes a runtime error. On FireFox, this is EventTarget.addEventListener: Argument 2 is not an object.. Looking with the debugger, it seems to read the value of the wrong prop for adding the event handler. For example, in the repro, it tries to add "hello" as an event handler. Error is thrown from this line
Additionally, some events such as onclick or onkeydowndon't cause this error.
Describe the bug
If you add an event handler to an element that has spread props, placing another prop after the event handler causes a runtime error. On FireFox, this is
EventTarget.addEventListener: Argument 2 is not an object.
. Looking with the debugger, it seems to read the value of the wrong prop for adding the event handler. For example, in the repro, it tries to add"hello"
as an event handler. Error is thrown from this lineAdditionally, some events such as
onclick
oronkeydown
don't cause this error.Reproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAA22QTW6EMAyFr5J6NSO10C66YQBpTtBKs2y6oGAgUv6UmJFQlLs3ZtRdd_b3_J4tJ5iVxgjNVwI7GIQGrt7DM9DuuYl31ISlj24LI5M2jkF5EnqwSyeBooReWkmjs5FEdAY_g_PxI9xKSauyi-hEyhdp2_ph5XHbKus3YmOkXWNJ8sM0lemXoJaVGvFavQc0F_GHNc6Fvh1UAhtTVVX_7cssOvujt9ClE55F14vETFJdHxcK7RY1ihUDPjgf7zRWhZ8krLgPTxLOrOUjzexHcsea1o731335inGTmhVO0FDYMH_nXwmS7vhQAQAA
Logs
No response
System Info
System: OS: Linux 6.6 NixOS 24.05 (Uakari) 24.05 (Uakari) CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900HX Memory: 17.88 GB / 31.20 GB Container: Yes Shell: 5.2.26 - /run/current-system/sw/bin/bash Binaries: Node: 21.6.2 - /etc/profiles/per-user/dooshii/bin/node npm: 10.2.4 - /etc/profiles/per-user/dooshii/bin/npm pnpm: 8.15.3 - /etc/profiles/per-user/dooshii/bin/pnpm Browsers: Chromium: 122.0.6261.94 npmPackages: svelte: 5.0.0-next.110 => 5.0.0-next.110
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: