mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-27 20:21:59 +02: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…
Reference in New Issue
Block a user