diff --git a/src/components/OtpField.astro b/src/components/OtpField.astro index 87107c4..7230bf1 100644 --- a/src/components/OtpField.astro +++ b/src/components/OtpField.astro @@ -49,9 +49,12 @@ const boxBase = const groupCls = "wr:flex wr:items-center wr:gap-2 wr:select-none"; const resendLabel = p.resendLabel ?? "Resend code"; + +const containerId = `otp-${Math.random().toString(36).slice(2)}`; ---