mirror of https://github.com/sveltejs/svelte
fix: svelte:element with dynamic this and spread attributes throws error (#9112)
fixes #9092 --------- Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>pull/9121/head
parent
3191147c2a
commit
228dd4d9d7
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: handle `svelte:element` with dynamic this and spread attributes
|
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
html: '<div id="element" class="element-handler">this is div</div>'
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let props = {
|
||||
id: "element",
|
||||
class: "element-handler"
|
||||
}
|
||||
</script>
|
||||
<svelte:element this={"div"} {...props}>this is div</svelte:element>
|
Loading…
Reference in new issue