From e43d7cbcf0aee583845859a65b0a454e8ef40283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=BChler?= Date: Wed, 23 Mar 2022 17:32:35 +0100 Subject: [PATCH] fix disabled input styles can be applied in tall-theme.css e.g. .form-input { @apply disabled:bg-gray-200 ... } --- resources/views/components/input.blade.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/views/components/input.blade.php b/resources/views/components/input.blade.php index 440c912..6f22390 100644 --- a/resources/views/components/input.blade.php +++ b/resources/views/components/input.blade.php @@ -16,14 +16,12 @@ @endif
- @unless($field->disabled) + required) required @endif + @if($field->disabled) disabled @endif {{ $attributes->except([...array_keys($attr), 'x-data', 'required', 'disabled'])->merge($attr)->merge(['class' => $errors->has($field->key) ? $field->errorClass : $field->class ]) }} /> - @else - - @endunless @error($field->key) @enderror