From 7e71eab5336aa9b66358e7417f50c6a20a2e32c0 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 28 Apr 2021 21:31:18 +0100 Subject: [PATCH] Update select props --- src/components/Select/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Select/index.tsx b/src/components/Select/index.tsx index 0d4bf82..f069005 100644 --- a/src/components/Select/index.tsx +++ b/src/components/Select/index.tsx @@ -21,6 +21,7 @@ type SelectProps = { label?: string; fullWidth?: boolean; onChange: (event: React.ChangeEvent) => void; + onBlur?: (event: React.FocusEvent) => void; }; const Select = ({ @@ -30,6 +31,7 @@ const Select = ({ value, options, onChange, + onBlur, error, errorMessage, ...props @@ -50,7 +52,7 @@ const Select = ({
- {options.map((option) => (