mirror of
https://github.com/gosticks/partition-filter-visualization.git
synced 2026-08-12 04:40:23 +00:00
fix: dropdown label not updating on restore from URL
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user