From f58251b5e18ca550cb9eb355a02eaee6858f12c1 Mon Sep 17 00:00:00 2001 From: Sadegh Barzegar Date: Sat, 19 Oct 2024 13:41:58 +0330 Subject: [PATCH] Refactor & improve OTP input focus handling --- .../views/components/otp-input.blade.php | 114 ++++++++++-------- 1 file changed, 64 insertions(+), 50 deletions(-) diff --git a/resources/views/components/otp-input.blade.php b/resources/views/components/otp-input.blade.php index effb13b..6b63d58 100644 --- a/resources/views/components/otp-input.blade.php +++ b/resources/views/components/otp-input.blade.php @@ -32,60 +32,76 @@ :state-path="$getStatePath()" >
+ e.preventDefault(); + }, + }">
- @foreach(range(1, $numberInput) as $column) - - @endforeach -