mirror of https://github.com/sveltejs/svelte
fix: missing classes after dynamic expressions in class attributes (#11134)
parent
d5776c3ec3
commit
15eb5b5864
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix missing classes after dynamic expressions in class attribute
|
@ -0,0 +1,3 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({});
|
@ -0,0 +1,2 @@
|
|||||||
|
<div class="bar baz svelte-m782ot">bar</div>
|
||||||
|
<div class="foo bar baz svelte-m782ot">bar</div>
|
@ -0,0 +1,11 @@
|
|||||||
|
<script>
|
||||||
|
const dynamic_value = 'bar';
|
||||||
|
</script>
|
||||||
|
<div class="{dynamic_value} baz">bar</div>
|
||||||
|
<div class="foo {dynamic_value} baz">bar</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.baz {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue