Skip to content

Commit

Permalink
Merge pull request #6 from hasan-ahani/fix-autocomplete
Browse files Browse the repository at this point in the history
[ADD] Auto complete #5
  • Loading branch information
hasan-ahani authored May 10, 2024
2 parents fe986d1 + 9f90c75 commit f34dccc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/components/otp-input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
$numberInput = $getNumberInput();
$isAutofocused = $isAutofocused();
$inputType = $getType();
$autocomplete = $getAutocomplete();
@endphp

<x-dynamic-component
Expand Down Expand Up @@ -80,7 +81,7 @@
},
}">
<div class="flex justify-between gap-6 fi-otp-input-container">

@foreach(range(1, $numberInput) as $column)

<x-filament::input.wrapper
Expand All @@ -107,6 +108,7 @@
maxlength="1"
x-ref="{{$column}}"
required
autocomplete="{{$autocomplete}}"
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"
x-on:input="handleInput($event, {{$column}})"
x-on:paste="handlePaste($event)"
Expand Down

0 comments on commit f34dccc

Please sign in to comment.