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
Copy file name to clipboardExpand all lines: packages/uui-base/lib/mixins/FormControlMixin.ts
+38-11Lines changed: 38 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,16 @@ import { UUIFormControlEvent } from '../events';
5
5
6
6
typeConstructor<T={}>=new(...args: any[])=>T;
7
7
8
+
typeNativeFormControlElement=HTMLInputElement;// Eventually use a specific interface or list multiple options like appending these types: ... | HTMLTextAreaElement | HTMLSelectElement
9
+
8
10
// TODO: make it possible to define FormDataEntryValue type.
* @description Important notice if adding a native form control then ensure that its value and thereby validity is updated when value is changed from the outside.
206
+
* @param element {NativeFormControlElement} - element to validate and include as part of this form association.
// Loop through custom validators, currently its intentional to have them overwritten native validity. but might need to be reconsidered (This current way enables to overwrite with custom messages)
0 commit comments