Skip to content

Commit 69f2e25

Browse files
committed
fix(formly): link error messages to input
1 parent 923a776 commit 69f2e25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/element-ng/formly/wrapper/si-formly-wrapper.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<div class="w-100" siFormlyFormFieldProvider [field]="field">
33
<ng-template #fieldComponent />
44
<div class="invalid-feedback" [class.d-block]="showError">
5-
<formly-validation-message [field]="field" />
5+
<!-- This string is hard-coded in the bootstrap fields. -->
6+
<!-- See https://github.com/ngx-formly/ngx-formly/blob/main/src/ui/bootstrap/input/src/input.type.ts -->
7+
<!-- We should get rid of the bootstrap package, to make it rely on our si-form-item code. -->
8+
<formly-validation-message [field]="field" [id]="field.id + '-formly-validation-error'" />
69
</div>
710
</div>
811
</si-form-item>

0 commit comments

Comments
 (0)