modification-Select.svelte

This commit is contained in:
Angel Di Pinto
2026-04-19 23:17:39 +02:00
parent 03777424bc
commit bf649fb01a
+2 -2
View File
@@ -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`;