mirror of https://github.com/sveltejs/svelte
parent
6b8b57c431
commit
434a58711f
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: sanitize component event names
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
</script>
|
||||
|
||||
<button on:click={() => dispatch('event-name')}>toggle</button>
|
Loading…
Reference in new issue