Skip to content

Commit

Permalink
Merge pull request #1 from apility/text-input-validation-feedback-fix
Browse files Browse the repository at this point in the history
Text input validation feedback fix
  • Loading branch information
erikdju committed Nov 16, 2022
2 parents d616931 + 7a234b5 commit 86f8b62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resources/views/components/fields/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

<input
type="{{ $type }}"
name="{{ $field->getFormFieldName() }}"
@class([
'form-control',
'is-invalid' => $errors->has('{{ $name }}')
'is-invalid' => $errors->has($field->getFormFieldName())
])
@include(config('forms.prefix', 'forms') . '::partials.attributes', [
'attributes' => array_filter([
Expand All @@ -27,4 +28,4 @@
'value' => $value ?? null,
])
])
>
>

0 comments on commit 86f8b62

Please sign in to comment.