Also replace icons afterUpdate
This commit is contained in:
parent
10d5d16967
commit
5cfdecfebf
@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import {replaceIcons} from "../../ts/icons.js";
|
||||
import {onMount} from "svelte";
|
||||
import {afterUpdate, onMount} from "svelte";
|
||||
|
||||
export let name: string;
|
||||
|
||||
@ -8,6 +8,9 @@
|
||||
replaceIcons(true);
|
||||
});
|
||||
|
||||
afterUpdate(() => {
|
||||
replaceIcons(false);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
Loading…
Reference in New Issue
Block a user