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:
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",
|
||||
"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",
|
||||
|
@ -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",
|
||||
|
@ -49,9 +49,7 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
{#if data === null}
|
||||
<slot />
|
||||
{:else}
|
||||
{#if data !== null}
|
||||
<svg {...data.attributes}>
|
||||
{@html data.body}
|
||||
</svg>
|
||||
|
@ -9,9 +9,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if data === null}
|
||||
<slot />
|
||||
{:else}
|
||||
{#if data !== null}
|
||||
<svg {...data.attributes}>
|
||||
{@html data.body}
|
||||
</svg>
|
||||
|
Loading…
Reference in New Issue
Block a user