You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If error links are manually entered using the error-links property, the error links won't focus GC Design System form elements properly. The error seems to come from a logic error in the internal focusElement() of the gcds-error-summary component.
Example
<form><gcds-error-summaryid="error-summary"
error-links='{ "#foo":"I am foo", "#shipmentWeight": "Error summary item." }'
heading="Please correct the following errors"
></gcds-error-summary><labelfor="foo">I am a label</label><inputid="foo" type="text"/>
<gcds-inputname="shipmentWeight"
input-id="shipmentWeight"
id="shipmentWeight"
size="7"
type="number"
label="Test"
></gcds-input></form>
Summary
If error links are manually entered using the
error-links
property, the error links won't focus GC Design System form elements properly. The error seems to come from a logic error in the internalfocusElement()
of thegcds-error-summary
component.Example
https://cds-snc.freshdesk.com/a/tickets/19262
The text was updated successfully, but these errors were encountered: