Skip to content

Commit 9f90c75

Browse files
committed
[ADD] Auto complete
1 parent fe986d1 commit 9f90c75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/components/otp-input.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
$numberInput = $getNumberInput();
1616
$isAutofocused = $isAutofocused();
1717
$inputType = $getType();
18+
$autocomplete = $getAutocomplete();
1819
@endphp
1920

2021
<x-dynamic-component
@@ -80,7 +81,7 @@
8081
},
8182
}">
8283
<div class="flex justify-between gap-6 fi-otp-input-container">
83-
84+
8485
@foreach(range(1, $numberInput) as $column)
8586

8687
<x-filament::input.wrapper
@@ -107,6 +108,7 @@
107108
maxlength="1"
108109
x-ref="{{$column}}"
109110
required
111+
autocomplete="{{$autocomplete}}"
110112
class="fi-input fi-otp-input block w-full border-none py-1.5 text-base text-gray-950 transition duration-75 placeholder:text-gray-400 focus:ring-0 disabled:text-gray-500 disabled:[-webkit-text-fill-color:theme(colors.gray.500)] disabled:placeholder:[-webkit-text-fill-color:theme(colors.gray.400)] dark:text-white dark:placeholder:text-gray-500 dark:disabled:text-gray-400 dark:disabled:[-webkit-text-fill-color:theme(colors.gray.400)] dark:disabled:placeholder:[-webkit-text-fill-color:theme(colors.gray.500)] sm:text-sm sm:leading-6 bg-white/0 ps-3 pe-3 text-center"
111113
x-on:input="handleInput($event, {{$column}})"
112114
x-on:paste="handlePaste($event)"

0 commit comments

Comments
 (0)