From 982871b61e887b6e81d9972d0a16cc914f238fdf Mon Sep 17 00:00:00 2001 From: Haider Alshamma Date: Tue, 7 Jan 2025 15:47:50 -0500 Subject: [PATCH] fix: a more accurate type for the Select onChange prop --- src/Select/Select.tsx | 4 ++-- src/Select/lib.ts | 16 +++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/Select/Select.tsx b/src/Select/Select.tsx index 0b7ffea5d..44727fed1 100644 --- a/src/Select/Select.tsx +++ b/src/Select/Select.tsx @@ -22,7 +22,7 @@ import { } from "./SelectComponents"; import { SelectOption } from "./SelectOption"; import MenuList from "./MenuList"; -import { calcOptionsLength, checkOptionsAreValid, extractValue, getReactSelectValue } from "./lib"; +import { calcOptionsLength, checkOptionsAreValid, CustomOnChangeValue, extractValue, getReactSelectValue } from "./lib"; export type NDSOptionValue = string | number | boolean | null; @@ -46,7 +46,7 @@ interface CustomProps