CityOfDetroit / COD-Design-System

Design system for the City of Detroit.
https://cityofdetroit.github.io/COD-Design-System/
MIT License
1 stars 3 forks source link

Support native forms #242

Open maxatdetroit opened 4 months ago

maxatdetroit commented 4 months ago

The Problem

ShadowDOM encapsulation means 3rd party javascript and (maybe?) standard use-agent form submission logic are unable to fetch the relevant form data needed during submission events. This is likely the issue in #1460 and seems to be corroborated by other design systems but still needs to be confirmed.

The Solution

Each form control component in the design system needs to implement the formdata event to append their data to the form just prior to submission.