Skip to content

Commit 0cc3bef

Browse files
committed
[Svelte] Update Fixture Component to fix intro test for Svelte 4 (Transitions in Svelte 4 are now local by default, while they were global in Svelte 3.)
1 parent 32eae8c commit 0cc3bef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Svelte/assets/test/fixtures/MyComponent.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
export let name = "without props";
44
</script>
55

6-
<div transition:fade={{ duration: 100 }}>
6+
<div transition:fade|global={{ duration: 100 }}>
77
<div>Hello {name}</div>
88
</div>

src/Svelte/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Svelte client-side component API:
9797
export let name = "Svelte";
9898
</script>
9999
100-
<div transition:fade>Hello {name}</div>
100+
<div transition:fade|global>Hello {name}</div>
101101
102102
103103
.. code-block:: html+twig

0 commit comments

Comments
 (0)