diff --git a/app/Views/Components/Forms/Input.php b/app/Views/Components/Forms/Input.php index fbb15ef3..4a705ed2 100644 --- a/app/Views/Components/Forms/Input.php +++ b/app/Views/Components/Forms/Input.php @@ -20,6 +20,8 @@ class Input extends FormComponent $this->attributes['class'] .= ' px-3 py-2'; } + unset($this->attributes['required']); + if ($this->required) { $this->attributes['required'] = 'required'; }