mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
25 stars 28 forks source link

Investigate Stencil Form Associated components #1236

Open ad9242 opened 1 year ago

ad9242 commented 1 year ago

Summary

From version 4.5, Stencil has support for Form Associated components: https://stenciljs.com/docs/form-associated

This could potentially provide an alternative method to the way we currently expose the underlying input field values on form submit

đź’¬ Description

Questions:

Would this allow the removal of the hidden input controls that we currently have to add to ensure that date is posted correctly on form submit? Would it be a breaking change? Or is there anything we could do to reduce that risk? Would this make the “form” prop\attribute obsolete? Would it affect any other “form*” props attributes Is it supported in all browsers we would need to support?

The purpose of this ticket is to identify answers to the above and evaluate if we should replace our existing mechanism with this approach. The output of this ticket should be a recommendation of whether to proceed & information on what changes would be required and to which components.

MI6-255 commented 1 week ago

Spike initially to look into how it'd work and if we want to