mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-03 23:09:18 +02:00
fix(input-component): unset required attribute to prevent rendering it when false
This commit is contained in:
parent
f74403bd7a
commit
db9ac13860
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue