Let's imagine we have simple <input>
with onChange and onPaste event. In Svelte4 I have used to use this code:
import {createEventDispatcher} from "svelte";const dispatch = createEventDispatcher();function change() { dispatch("change");}function paste() { dispatch("paste"); dispatch("change");}
<input on:paste={paste} on:change={change} />
But in Svelte5 I should use (as it's written in the documentation) $props
but I don't know how to dispatch multiple events (paste and change). Any ideas?