From 571b334bff225de4177556d98790fb87c608cfc2 Mon Sep 17 00:00:00 2001 From: terronator Date: Mon, 8 Apr 2024 16:01:47 +0200 Subject: [PATCH] fix: select should not ignore provided props Co-authored-by: Nicola Alessandro Domingo --- src/Select/Select.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Select/Select.tsx b/src/Select/Select.tsx index f45324cdd..72950173e 100644 --- a/src/Select/Select.tsx +++ b/src/Select/Select.tsx @@ -21,12 +21,13 @@ export interface SelectProps extends Omit void; } -export const Select = ({ id, disabled = false, label, children, onChange }: SelectProps) => { +export const Select = ({ id, disabled = false, label, children, onChange, ...rest }: SelectProps) => { const handleChange = (e: ChangeEvent) => { onChange(e.target.value); }; const inputProps = { + ...rest, disabled: disabled, onChange: handleChange };