Skip to content

Commit

Permalink
fix: wrong usage of attribute required (#19005)
Browse files Browse the repository at this point in the history
  • Loading branch information
steinsebastian authored Jul 10, 2024
1 parent 51eab1d commit fdc59fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
: createAttributeUiKey('label', attribute.name)
"
attr.role="{{ attribute.dataType }}"
attr.required="{{ attribute.required }}"
[attr.required]="attribute.required === true ? 'required' : null"
(change)="onChange()"
maxlength="{{ attribute.maxlength }}"
[attr.aria-label]="getAriaLabelComplete()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
type="radio"
formcontrolname="attributeRadioButtonForm"
[formControl]="attributeRadioButtonForm"
[attr.required]="attribute.required"
[attr.required]="attribute.required === true ? 'required' : null"
[value]="value.valueCode"
name="{{ createAttributeIdForConfigurator(attribute) }}"
attr.name="{{ createAttributeIdForConfigurator(attribute) }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
[value]="value.valueCode"
name="{{ createAttributeIdForConfigurator(attribute) }}"
attr.name="{{ createAttributeIdForConfigurator(attribute) }}"
[attr.required]="attribute.required"
[attr.required]="attribute.required === true ? 'required' : null"
[attr.checked]="
attributeRadioButtonForm.value === value.valueCode ? 'checked' : null
"
Expand Down Expand Up @@ -96,7 +96,7 @@
[value]="value.valueCode"
name="{{ createAttributeIdForConfigurator(attribute) }}"
attr.name="{{ createAttributeIdForConfigurator(attribute) }}"
[attr.required]="attribute.required"
[attr.required]="attribute.required === true ? 'required' : null"
[attr.checked]="
attributeRadioButtonForm.value === value.valueCode
? 'checked'
Expand Down

0 comments on commit fdc59fc

Please sign in to comment.