From 73b6b55ed425c596c3b484bdd8bc495c47f19dee Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Thu, 21 Aug 2025 14:55:21 +0530 Subject: [PATCH] Update OTP Field with Resend OTP --- src/components/OtpField.astro | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) 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)}`; ---
@@ -159,6 +162,7 @@ const resendLabel = p.resendLabel ?? "Resend code";