2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-09 23:00:56 +00:00

Do not render slot in Svelte component, it causes conflicts with Svelte transitions

This commit is contained in:
Vjacheslav Trushkin 2021-05-10 18:32:28 +03:00
parent 05a6e3d765
commit a508b4c051
4 changed files with 5 additions and 9 deletions

View File

@ -1,12 +1,12 @@
{
"name": "@iconify/svelte",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@iconify/svelte",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"license": "MIT",
"devDependencies": {
"@babel/preset-env": "^7.14.0",

View File

@ -2,7 +2,7 @@
"name": "@iconify/svelte",
"description": "Iconify icon component for Svelte.",
"author": "Vjacheslav Trushkin",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"license": "MIT",
"bugs": "https://github.com/iconify/iconify/issues",
"homepage": "https://github.com/iconify/iconify",

View File

@ -49,9 +49,7 @@
})
</script>
{#if data === null}
<slot />
{:else}
{#if data !== null}
<svg {...data.attributes}>
{@html data.body}
</svg>

View File

@ -9,9 +9,7 @@
}
</script>
{#if data === null}
<slot />
{:else}
{#if data !== null}
<svg {...data.attributes}>
{@html data.body}
</svg>