mirror of https://github.com/sveltejs/svelte
fix: don't duplicate comments in attributes (#18636)
An attribute with a comment would be printed again atop the following attribute because we didn't take that case into account.pull/18638/head
parent
26786e9298
commit
3ed9db4ba7
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: don't duplicate comments in attributes
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<Button
|
||||||
|
onclick={() => {
|
||||||
|
// belongs to onclick
|
||||||
|
run();
|
||||||
|
}}
|
||||||
|
onkeydown={() => run()}
|
||||||
|
/>
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<Button
|
||||||
|
onclick={() => {
|
||||||
|
// belongs to onclick
|
||||||
|
run();
|
||||||
|
}}
|
||||||
|
onkeydown={() => run()}
|
||||||
|
/>
|
||||||
Loading…
Reference in new issue