fix: dropdown label not updating on restore from URL

This commit is contained in:
Wlad Meixner
2023-09-05 11:52:46 +02:00
parent 6b074bb3ce
commit e75c64465d
+6
View File
@@ -1,4 +1,6 @@
<script lang="ts">
import { beforeUpdate } from 'svelte';
import { CheckCircleIcon, CheckIcon, MailIcon, PhoneIcon } from 'svelte-feather-icons';
import Dropdown from './Dropdown.svelte';
import Button from './Button.svelte';
@@ -64,6 +66,10 @@
return `(${selected.length}) selected`;
}
beforeUpdate(() => {
selectionLabel = labelForSelection();
});
</script>
<div class="flex flex-col">