Closed
Description
It would be quite neat to allow for multiple event listeners per node even if they're of the same type. It already works when one is using a modifier and the other doesn't, but otherwise there will be an error about Attributes need to be unique
. I've already looked into the code and it could be changed by moving the check for unique attributes a few lines lower and giving it an extra case for EventHandlers. Tests are still green after the change.
<script>
import Component from './Component.svelte';
function onInput(event) {
console.log(event)
}
</script>
<Component let:listener>
<input on:input={listener} on:input={onInput} />
</Component>