Commit db9ac138 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(input-component): unset required attribute to prevent rendering it when false

parent f74403bd
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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';
        }