From 4c09b7e512c91c50a23d3e1e255c9300cc65243d Mon Sep 17 00:00:00 2001 From: "takeshi.kano" Date: Mon, 10 Jun 2024 10:17:24 +0900 Subject: [PATCH] fix: make value not required for Input and Textarea Signed-off-by: takeshi.kano --- src/components/Input/Input.tsx | 6 +----- src/components/TextArea/TextArea.tsx | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index f251d9e1..5d8c7169 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -11,11 +11,7 @@ type Props = { * @default false */ isInvalid?: boolean; - /** - * 値 - */ - value: string | number; -} & Omit, 'invalid' | 'value'> & +} & Omit, 'invalid'> & CustomDataAttributeProps; export const Input = forwardRef(({ isInvalid, ...props }, ref) => { diff --git a/src/components/TextArea/TextArea.tsx b/src/components/TextArea/TextArea.tsx index 6ff1c5fa..68d305b8 100644 --- a/src/components/TextArea/TextArea.tsx +++ b/src/components/TextArea/TextArea.tsx @@ -12,16 +12,12 @@ type Props = { * @default false */ isInvalid?: boolean; - /** - * 値 - */ - value: string; /** * フィールドを無効化するかどうか * @default false */ disabled?: boolean; -} & Omit, 'value'> & +} & TextareaHTMLAttributes & CustomDataAttributeProps; export const TextArea = forwardRef(({ isInvalid = false, className, ...props }, ref) => {