chore(web): simpler unique ID generation (#9945)

This commit is contained in:
Ben 2024-06-02 16:41:44 +00:00 committed by GitHub
parent d1135db8cf
commit 1323c7ee88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 36 deletions

View file

@ -18,8 +18,8 @@
import { shortcuts } from '$lib/actions/shortcut';
import { clickOutside } from '$lib/actions/click-outside';
import { focusOutside } from '$lib/actions/focus-outside';
import { generateId } from '$lib/utils/generate-id';
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
import { uniqueIdStore } from '$lib/stores/unique-id.store';
export let label: string;
export let hideLabel = false;
@ -30,7 +30,7 @@
/**
* Unique identifier for the combobox.
*/
let id: string = uniqueIdStore.generateId();
let id: string = generateId();
/**
* Indicates whether or not the dropdown autocomplete list should be visible.
*/