mirror of https://github.com/sveltejs/svelte
fix: prevent var name clashing for delegated events without params (#13896)
parent
dee8db53df
commit
3147287813
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: prevent var name clashing for delegated events without params
|
@ -0,0 +1,14 @@
|
||||
import { flushSync } from 'svelte';
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
mode: ['client'],
|
||||
test({ assert, target, logs }) {
|
||||
const btn = target.querySelector('button');
|
||||
|
||||
flushSync(() => {
|
||||
btn?.click();
|
||||
});
|
||||
assert.deepEqual(logs, ['test']);
|
||||
}
|
||||
});
|
@ -0,0 +1,6 @@
|
||||
<svelte:options runes />
|
||||
<script>
|
||||
let _ = "test"
|
||||
</script>
|
||||
|
||||
<button onclick={() => { console.log(_)} }></button>
|
Loading…
Reference in new issue