Skip to content

Commit

Permalink
Merge pull request #89 from helsingborg-stad/fix/corrected-attribute
Browse files Browse the repository at this point in the history
fix: corrected attribute name
  • Loading branch information
NiclasNorin authored Apr 12, 2024
2 parents 36b83ff + 0e84f94 commit f2c2c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/php/Module/views/fields/checkbox.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class="form-group c-field checkbox-group {{$field['required'] ? 'checkbox-group-required' : ''}}">

@if($field['required'])
<input class="js-checkbox-valid u-display--none" aria-label="For validating checkbox group" {{$field['required'] ? 'js-required' : ''}} type="checkbox"/>
<input class="js-checkbox-valid u-display--none" aria-label="For validating checkbox group" {{$field['required'] ? 'data-js-required' : ''}} type="checkbox"/>
@endif

<div class="c-field__label" id="label-{{ $module_id }}-{{ sanitize_title($field['label']) }}">{{ $field['label'] }}{!! $field['required'] ? '<span class="u-color__text--danger">*</span>' : '' !!}</div>
Expand Down
2 changes: 1 addition & 1 deletion source/php/Module/views/fields/file_upload.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'label' => $field['label'],
'accept' => $field['filetypes'] && is_array($field['filetypes']) ? $field['attributeList']['accept'] : '',
'filesMax' => $field['type'] === 'multiple' ? $field['files_max'] : 1,
'classList' => [$field['required'] ? 'js-required' : ''],
'classList' => [$field['required'] ? 'data-js-required' : ''],
])
@endfileinput

Expand Down

0 comments on commit f2c2c71

Please sign in to comment.