diff --git a/resources/views/components/forms/input.blade.php b/resources/views/components/forms/input.blade.php index f3991f4b..a73d4b25 100644 --- a/resources/views/components/forms/input.blade.php +++ b/resources/views/components/forms/input.blade.php @@ -34,7 +34,7 @@ class="{{ $attributes->classFor('label') }}" classMerge([ 'input', - 'error' => $errors->has($attributes->wireModel()), + 'error' => $errors->has($attributes->wireKey()), ]) ->merge([ ...['id' => $attributes->wireKey(), 'type' => 'text'],