Add FormAssociation mechanism to automatically map proxy values #3582
Labels
area:fast-foundation
Pertains to fast-foundation
closed:obsolete
No longer valid
feature
A new feature
warning:stale
No recent activity within a reasonable amount of time
The
FormAssociated
base class leverages a proxy element to support browsers that do not support native form-association. Currently most components add a change handler and manually update the proxy element when parallel properties on the custom element change. This logic is largely duplicated.We should provide a simple way to declare that a property should be reflected to the proxy element so that logic can be encapsulated. In general the mapping is 1-1 but there is 1 case where the value is mapped via the
setAttribute
API so there will need to be some level of configuration required.This could look something like:
The text was updated successfully, but these errors were encountered: