Skip to content

Passing "null" to on:"eventname" still adds event listener. #7561

@humbleCoder1990

Description

@humbleCoder1990

Describe the bug

Passing "export let" variable to on: directives still creates event listener.
Plain "let" variable works..
But It also doesn't work if I use "on:click|stopPropagation"

Reproduction

This adds event listener.

image

This also add event listener..

image

Logs

No response

System Info

Mac, Chrome

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions