Calling e.preventDefault on an event handler attached with onclick in the svelte 5 REPL does not seem to do anything.
Using a different way to attach the event handler, e.g. on:click restores the intended behavior.
Suspected Cause
@Rich-Harris mentioned on discord that this issue perhaps being related to this piece of code
Describe the bug
Description
Calling
e.preventDefault
on an event handler attached withonclick
in the svelte 5 REPL does not seem to do anything. Using a different way to attach the event handler, e.g.on:click
restores the intended behavior.Suspected Cause
@Rich-Harris mentioned on discord that this issue perhaps being related to this piece of code
Reproduction
Broken REPL
Logs
No response
System Info
Severity
annoyance