mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 15:44:05 +00:00
Do not render slot in Svelte component, it causes conflicts with Svelte transitions
This commit is contained in:
parent
05a6e3d765
commit
a508b4c051
4
packages/svelte/package-lock.json
generated
4
packages/svelte/package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@iconify/svelte",
|
"name": "@iconify/svelte",
|
||||||
"version": "2.0.0-alpha.3",
|
"version": "2.0.0-alpha.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@iconify/svelte",
|
"name": "@iconify/svelte",
|
||||||
"version": "2.0.0-alpha.3",
|
"version": "2.0.0-alpha.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.14.0",
|
"@babel/preset-env": "^7.14.0",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "@iconify/svelte",
|
"name": "@iconify/svelte",
|
||||||
"description": "Iconify icon component for Svelte.",
|
"description": "Iconify icon component for Svelte.",
|
||||||
"author": "Vjacheslav Trushkin",
|
"author": "Vjacheslav Trushkin",
|
||||||
"version": "2.0.0-alpha.3",
|
"version": "2.0.0-alpha.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": "https://github.com/iconify/iconify/issues",
|
"bugs": "https://github.com/iconify/iconify/issues",
|
||||||
"homepage": "https://github.com/iconify/iconify",
|
"homepage": "https://github.com/iconify/iconify",
|
||||||
|
@ -49,9 +49,7 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if data === null}
|
{#if data !== null}
|
||||||
<slot />
|
|
||||||
{:else}
|
|
||||||
<svg {...data.attributes}>
|
<svg {...data.attributes}>
|
||||||
{@html data.body}
|
{@html data.body}
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if data === null}
|
{#if data !== null}
|
||||||
<slot />
|
|
||||||
{:else}
|
|
||||||
<svg {...data.attributes}>
|
<svg {...data.attributes}>
|
||||||
{@html data.body}
|
{@html data.body}
|
||||||
</svg>
|
</svg>
|
||||||
|
Loading…
Reference in New Issue
Block a user