From 7fcf75829a34021126c3e790fcd0707bd0ace624 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 5 May 2023 10:13:43 +0200 Subject: [PATCH] fix input --- .../views/components/inputs/input.blade.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/resources/views/components/inputs/input.blade.php b/resources/views/components/inputs/input.blade.php index 10c61ba50..ec7e38e1c 100644 --- a/resources/views/components/inputs/input.blade.php +++ b/resources/views/components/inputs/input.blade.php @@ -1,13 +1,11 @@ @props([ - 'id' => null, + 'id' => $attributes->has('id') || $attributes->has('label'), 'type' => 'text', 'required' => $attributes->has('required'), - 'label' => null, - 'instantSave' => false, - 'disabled' => false, - 'hidden' => false, - 'noLabel' => false, - 'noDirty' => false, + 'label' => $attributes->has('label'), + 'instantSave' => $attributes->has('instantSave'), + 'noLabel' => $attributes->has('noLabel'), + 'noDirty' => $attributes->has('noDirty'), ]) @else - @endif @error($id)