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)