-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
<script>
const state = $state({
currentTarget: '',
target: '',
})
function onclick(e) {
state.currentTarget = e.currentTarget.id
state.target = e.target.id
}
</script>
<div role="button" tabindex="0" onkeydown={() => {}} id="parent" onclick={onclick} >
Click parent
<div id="child">Click child</div>
</div>Reproduction
Logs
No response
System Info
System:
OS: macOS 14.5
CPU: (10) arm64 Apple M1 Max
Memory: 2.28 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.0.0
npm: 10.5.1
pnpm: 9.0.6
Browsers:
Chrome: 124.0.6367.80
Safari: 17.5
npmPackages:
svelte: 5.0.0-next.115 => 5.0.0-next.115Severity
blocking an upgrade
svelte-kit-so-good, yangshangbo, brunnerh, michael, JetLua and 3 more
Metadata
Metadata
Assignees
Labels
No labels