mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(input-component): unset required attribute to prevent rendering it when false
This commit is contained in:
parent
f74403bd7a
commit
db9ac13860
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user