mirror of https://github.com/sveltejs/svelte
fix: ensure spread attribute events are attached synchronously (#14387)
* fix: ensure spread attribute events are attached synchronously * fix: ensure spread attribute events are attached synchronously * Update .changeset/rich-worms-burn.md Co-authored-by: Rich Harris <rich.harris@vercel.com> * simplify --------- Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> Co-authored-by: Rich Harris <rich.harris@vercel.com>broken-slot-pruning
parent
6a5f30b290
commit
dd9abea2a1
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: attach spread attribute events synchronously
|
@ -0,0 +1,7 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
test({ assert, logs }) {
|
||||
assert.deepEqual(logs, ['onfocus']);
|
||||
}
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
const focus = (input) => {
|
||||
input.focus();
|
||||
};
|
||||
</script>
|
||||
|
||||
<input {...({})} onfocus={() => console.log("onfocus")} use:focus />
|
Loading…
Reference in new issue