-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trusted events modifier #6137
Labels
Comments
Merged
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Activity
Holen Sie sich Outlook für Android<https://aka.ms/AAb9ysg>
…________________________________
From: stale[bot] ***@***.***>
Sent: Saturday, June 26, 2021 9:04:36 PM
To: sveltejs/svelte ***@***.***>
Cc: Dennis Kaspar ***@***.***>; Author ***@***.***>
Subject: Re: [sveltejs/svelte] trusted events modifier (#6137)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#6137 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP7SMRDDUCQDY5JFDSKXQYDTUYQEJANCNFSM4Z4YVVDQ>.
|
dummdidumm
pushed a commit
that referenced
this issue
Jun 27, 2021
Fixes #6137 Adding a trusted modifier to make events not be dispatchable by console/sourcecode. Useful to prevent injected code to automatically dispatch event for preventing botting
This has been added in 3.39.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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>
The text was updated successfully, but these errors were encountered: