-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Describe the bug
I've haven't been able to successfully reproduce this in the repl or in a smaller project, it only happens in my main project. I'm mostly posting this here for visibility if anyone else experiences the same. Also I will post a successful reproduction once I've managed to figure it out. I'm pretty sure this is a Svelte 5 issue, as it only started happening when going from Svelte 4 -> Svelte 5
In my project, if I have a button inside a portal to body then that button is not clickable, it seems like the on:click doesn't get properly set, as it is never runned when clicking it. This gets resolved if I use svelte:element this="button" instead of a button (thought it only works for on:click and not onclick when using svelte:element)
Reproduction
Logs
No response
System Info
System:
OS: Linux 5.18 Manjaro Linux
CPU: (12) x64 AMD Ryzen 5 5600U with Radeon Graphics
Memory: 556.61 MB / 7.08 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 21.1.0 - /usr/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 10.2.3 - /usr/bin/npm
bun: 0.8.1 - /usr/bin/bun
Browsers:
Chromium: 119.0.6045.123
Severity
annoyance