mirror of https://github.com/sveltejs/svelte
fix: correctly update dynamic member expressions (#14359)
* fix: output template effect for svg xlink attribute * mark subtree dynamic in MemberExpression visitor * don't treat attributes and text nodes differently * Update .changeset/serious-spiders-bake.md --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/14363/head
parent
012166ec3c
commit
6e8267f462
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: correctly update dynamic member expressions
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<div><svg aria-hidden="true" height="14" width="13"><use xlink:href="test#done"></use></svg></div`
|
||||
});
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import { sprites } from './sprites.js'
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<svg width="13" height="14" aria-hidden="true">
|
||||
<use xlink:href="{sprites['a']}#done"></use>
|
||||
</svg>
|
||||
</div>
|
@ -0,0 +1,3 @@
|
||||
export const sprites = {
|
||||
a: 'test'
|
||||
};
|
Loading…
Reference in new issue