modification-Select.svelte
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<script lang="ts">
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
import { cyrb53 } from "../../utils/hash";
|
||||
import { murmur3 } from "../../utils/hash";
|
||||
|
||||
import type { Snippet } from "svelte";
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
}: SelectProps = $props();
|
||||
|
||||
// Generate ID if not provided
|
||||
const selectId = id || `select-${cyrb53(labelText || name || "select")}`;
|
||||
const selectId = id || `select-${murmur3(labelText || name || "select")}`;
|
||||
const errorId = `${selectId}-error`;
|
||||
const helperId = `${selectId}-helper`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user