Closed
Description
Describe the bug
if u create a new component in Svelte 5 using mount the documentation says
import { mount } from 'svelte';
const app = mount(App, { target: document.getElementById("app"), events: { event: callback } });
those events get ignored...and only way (since version next.31) it's to use it this way inside the props objecte
const app = mount(App, { target: document.getElementById("app"), props:{$$events: { event: callback }} });
Reproduction
Logs
No response
System Info
System:
OS: Windows 10 10.0.19045
CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
Memory: 3.76 GB / 15.36 GB
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.21 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.4.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (121.0.2277.128)
Internet Explorer: 11.0.19041.3636
npmPackages:
svelte: ^5.0.0-next.1 => 5.0.0-next.60
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels