From 877017cf8c41ac15eb8135fa4c8daa4374024d9e Mon Sep 17 00:00:00 2001 From: webrooster Date: Tue, 7 Mar 2023 09:22:45 +0100 Subject: [PATCH 1/2] fix(input, textarea): add missing attribute name --- .../components/form/InputForm.tsx | 4 ++++ .../stories/form/InputForm.stories.tsx | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/design-system-component-library-yeahyeahyeah/components/form/InputForm.tsx b/packages/design-system-component-library-yeahyeahyeah/components/form/InputForm.tsx index 21ee7409..64ee5694 100644 --- a/packages/design-system-component-library-yeahyeahyeah/components/form/InputForm.tsx +++ b/packages/design-system-component-library-yeahyeahyeah/components/form/InputForm.tsx @@ -3,6 +3,7 @@ import tw, { styled } from 'twin.macro'; import { Eye, Cancel } from '../icon/index'; export interface IFormInputProps { + name: string; label?: string; labelSize?: 'default' | 'small'; editType: 'input' | 'textarea'; @@ -21,6 +22,7 @@ export const InputForm: React.FC = ({ labelSize = 'default', editType = 'textarea', required = true, + name = 'formfieldname', type = 'text', placeholder = 'Placeholder', errorMessage, @@ -60,6 +62,7 @@ export const InputForm: React.FC = ({ = ({ {label}