File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/View/Components/Forms
resources/views/components/forms Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public function __construct(
22
22
public bool $ allowToPeak = true ,
23
23
public bool $ isMultiline = false ,
24
24
public string $ defaultClass = 'input ' ,
25
+ public string $ autocomplete = 'off ' ,
25
26
) {}
26
27
27
28
public function render (): View |Closure |string
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ class="flex absolute inset-y-0 right-0 items-center pr-2 cursor-pointer hover:da
25
25
</svg >
26
26
</div >
27
27
@endif
28
- <input value =" {{ $value } }" {{ $attributes -> merge ([' class' => $defaultClass ]) } } @required ($required )
28
+ <input autocomplete =" {{ $autocomplete } }" value =" {{ $value } }"
29
+ {{ $attributes -> merge ([' class' => $defaultClass ]) } } @required ($required )
29
30
@if ($id !== ' null' ) wire:model ={{ $id } } @endif
30
31
wire:dirty.class.remove =' dark:focus:ring-coolgray-300 dark:ring-coolgray-300'
31
32
wire:dirty.class =" dark:focus:ring-warning dark:ring-warning" wire:loading.attr =" disabled"
@@ -35,7 +36,7 @@ class="flex absolute inset-y-0 right-0 items-center pr-2 cursor-pointer hover:da
35
36
36
37
</div >
37
38
@else
38
- <input @if ($value ) value =" {{ $value } }" @endif
39
+ <input autocomplete = " {{ $autocomplete } } " @if ($value ) value =" {{ $value } }" @endif
39
40
{{ $attributes -> merge ([' class' => $defaultClass ]) } } @required ($required ) @readonly ($readonly )
40
41
@if ($id !== ' null' ) wire:model ={{ $id } } @endif
41
42
wire:dirty.class.remove =' dark:focus:ring-coolgray-300 dark:ring-coolgray-300'
You can’t perform that action at this time.
0 commit comments