From 4467dda3de433d758ac0df24b1986dcb233bc1bb Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 28 Apr 2021 21:31:46 +0100 Subject: [PATCH] Update textarea props --- src/components/TextArea/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/TextArea/index.tsx b/src/components/TextArea/index.tsx index 655fd28..5c423a3 100644 --- a/src/components/TextArea/index.tsx +++ b/src/components/TextArea/index.tsx @@ -21,6 +21,7 @@ type TextAreaProps = { placeholder?: string; fullWidth?: boolean; onChange: (event: React.ChangeEvent) => void; + onBlur?: (event: React.FocusEvent) => void; }; const TextArea = ({ @@ -30,6 +31,7 @@ const TextArea = ({ placeholder, value, onChange, + onBlur, error, errorMessage, ...props @@ -55,6 +57,7 @@ const TextArea = ({ value={value} name={name} onChange={onChange} + onBlur={onBlur} placeholder={placeholder} />