diff --git a/.changeset/curvy-emus-begin.md b/.changeset/curvy-emus-begin.md new file mode 100644 index 000000000..4cd8748f7 --- /dev/null +++ b/.changeset/curvy-emus-begin.md @@ -0,0 +1,5 @@ +--- +'@web3uikit/core': patch +--- + +fix(input,select): added name to element diff --git a/packages/core/src/lib/InputNew/Input.tsx b/packages/core/src/lib/InputNew/Input.tsx index facf606cf..dbe9ce60f 100644 --- a/packages/core/src/lib/InputNew/Input.tsx +++ b/packages/core/src/lib/InputNew/Input.tsx @@ -23,6 +23,7 @@ const Input: React.FC = ({ errorMessage = 'Sorry this is not valid', id, label, + name, onBlur, onChange, onFocus, @@ -145,6 +146,7 @@ const Input: React.FC = ({ maxLength={validation?.maxLength || props.maxLength} min={validation?.min || props.min} minLength={validation?.minLength || props.minLength} + name={name} onBlur={(e) => onBlurEvent(e)} onChange={(e) => onChangeEvent(e)} onFocus={(e) => onFocusEvent(e)} diff --git a/packages/core/src/lib/Select/TraditionalSelect/TraditionalSelect.tsx b/packages/core/src/lib/Select/TraditionalSelect/TraditionalSelect.tsx index c5024ce76..99c5c0c3e 100644 --- a/packages/core/src/lib/Select/TraditionalSelect/TraditionalSelect.tsx +++ b/packages/core/src/lib/Select/TraditionalSelect/TraditionalSelect.tsx @@ -12,6 +12,7 @@ const TraditionalSelect: React.FC = ({ errorMessage = '', id = 'web3uikit-select', label, + name, onBlurTraditional, onChange, onChangeTraditional, @@ -55,6 +56,7 @@ const TraditionalSelect: React.FC = ({ } required={validation?.required} value={value} + name={name} >