Skip to content

trusted events modifier #6137

@Kapsonfire

Description

@Kapsonfire

Is your feature request related to a problem? Please describe.
To make events like on:click not programmatical callable, I wish the events to check if the event isTrusted. Problem is, i have to check it in each function.

Describe the solution you'd like
A eventModifier like |once or |passive - call it trusted
<button on:click|trusted={() => console.log('Trusted event'); }></button>

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