diff --git a/resources/views/components/button.blade.php b/resources/views/components/button.blade.php index a6f159b..3c2b58f 100644 --- a/resources/views/components/button.blade.php +++ b/resources/views/components/button.blade.php @@ -1,4 +1,4 @@ -@props(['href' => false, 'type' => 'default']) +@props(['href' => false, 'type' => 'default', 'element' => false]) @php @@ -22,6 +22,8 @@ default: if ($href) { $element = 'a'; $attributes = $attributes->merge([ 'href' => $href ]); +} else if ($element == 'input') { + $attributes = $attributes->merge([ 'type' => 'submit' ]); } else { $element = 'button'; }