From 88bccd77cf80f9b5b509f94c618f6c42faf10628 Mon Sep 17 00:00:00 2001 From: ma-efremoff <64027148+ma-efremoff@users.noreply.github.com> Date: Fri, 23 Dec 2022 19:07:12 +0300 Subject: [PATCH] chore(Select): forward open flag to renderControl (#442) Co-authored-by: Maksim Efremov --- src/components/Select/components/SelectControl/SelectControl.tsx | 1 + src/components/Select/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/Select/components/SelectControl/SelectControl.tsx b/src/components/Select/components/SelectControl/SelectControl.tsx index a67140100f..d0bab5c32c 100644 --- a/src/components/Select/components/SelectControl/SelectControl.tsx +++ b/src/components/Select/components/SelectControl/SelectControl.tsx @@ -69,6 +69,7 @@ export const SelectControl = React.forwardRef((props, onKeyDown, onClick: handleClick, ref: handleControlRef, + open: Boolean(open), }); } diff --git a/src/components/Select/types.ts b/src/components/Select/types.ts index 1b4764bba1..b2bb1fb3b3 100644 --- a/src/components/Select/types.ts +++ b/src/components/Select/types.ts @@ -12,6 +12,7 @@ export type SelectProps = QAProps & onClick: (e: React.MouseEvent) => void; onKeyDown: (e: React.KeyboardEvent) => void; ref: React.Ref; + open: boolean; }) => React.ReactElement; renderFilter?: (props: { onChange: (filter: string) => void;