ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

feat(ui5-*): integrate element internals in input components

Open nnaydenow opened this issue 1 year ago • 1 comments

Integrate the ElementInternals feature into UI5 web components. This enhancement allows input-like web components to behave as native input elements within HTML forms. As a result, the features/InputElementsFormSupport.js feature is now redundant and has been removed.

Changes in @customElement decorator: Added new formAssociated flag attaches internals to the component when the component is associated with form (placed inside form).

Changes in @property and @slot decorators: Added new formValue flag that marks the property / slot as form related and updates the form state on change.

BREAKING CHANGE: The features/InputElementsFormSupport.js feature has been deleted and now, form elements works natively in form elements.

Related: #8461

nnaydenow avatar Apr 08 '24 11:04 nnaydenow

Overall, looks good to me.

We have to only commonly agree on the updatesFormValue new metadata entity name.

As discussed offline the metadata name is changed to formValue

nnaydenow avatar May 10 '24 07:05 nnaydenow