Skip to content

Commit

Permalink
chore(Select): forward open flag to renderControl (#442)
Browse files Browse the repository at this point in the history
Co-authored-by: Maksim Efremov <[email protected]>
  • Loading branch information
ma-efremoff and ma-efremoff authored Dec 23, 2022
1 parent 3e215cc commit 88bccd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const SelectControl = React.forwardRef<HTMLElement, ControlProps>((props,
onKeyDown,
onClick: handleClick,
ref: handleControlRef,
open: Boolean(open),
});
}

Expand Down
1 change: 1 addition & 0 deletions src/components/Select/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type SelectProps = QAProps &
onClick: (e: React.MouseEvent<HTMLElement>) => void;
onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
ref: React.Ref<HTMLElement>;
open: boolean;
}) => React.ReactElement;
renderFilter?: (props: {
onChange: (filter: string) => void;
Expand Down

0 comments on commit 88bccd7

Please sign in to comment.