Skip to content
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

svelte 5: currentTarget and target is same #11407

Closed
ammarriq opened this issue May 1, 2024 · 1 comment
Closed

svelte 5: currentTarget and target is same #11407

ammarriq opened this issue May 1, 2024 · 1 comment

Comments

@ammarriq
Copy link

ammarriq commented May 1, 2024

Describe the bug

When we add an event handler to an element and then execute it, we find that both currentTarget and target are the same, rather than currentTarget belonging to the element where the event listener is attached and target belonging to the element that triggered the event.

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACkWOzY6DMAyEXyWyegAVwe6VBqS-w942PbDBVFGDgxKnUhXl3VeB_bnZnvE3k2AxFgP0nwloWhF6uG4bNMCvrSzhiZYRGgguel0uMmhvNh4VKbbIQrtILAZxCjwxVm_1RVHRlkiajSNhSHtckbjCWqQiKdaOgrPYWnevsNXReyT-mPwduRHY8j7Vh_f3o8ScB_Fe-JwVye6_CcmvyOxIONLW6MeQ_lLz3lTO5jn-kIoh9CLtyLyr3SHL7sCM0MDqZrMYnKFnHzHf8jcEntpGKwEAAA==

Logs

No response

System Info

svelte 5

Severity

annoyance

@Conduitry
Copy link
Member

Duplicate of #11328.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants