2
0
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:
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", "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",

View File

@ -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",

View File

@ -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>

View File

@ -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>