diff --git a/types/react-select/src/components/Control.d.ts b/types/react-select/src/components/Control.d.ts index 285f14ba64..224ed4bcfb 100644 --- a/types/react-select/src/components/Control.d.ts +++ b/types/react-select/src/components/Control.d.ts @@ -8,6 +8,8 @@ interface State { isDisabled: boolean; /** Whether the select is focused. */ isFocused: boolean; + /** Whether the select is expanded. */ + menuIsOpen: boolean; } export type ControlProps = CommonProps & diff --git a/types/react-select/src/components/Menu.d.ts b/types/react-select/src/components/Menu.d.ts index 7f8c2f6b85..f8af8f8507 100644 --- a/types/react-select/src/components/Menu.d.ts +++ b/types/react-select/src/components/Menu.d.ts @@ -53,6 +53,8 @@ export type MenuProps = CommonProps void, /** Props to be passed to the menu wrapper. */ innerProps: object, + /** Reference to the internal element, consumed by the MenuPlacer component */ + innerRef: InnerRef, /** Set the maximum height of the menu. */ maxMenuHeight: number, /** Set whether the menu should be at the top, at the bottom. The auto options sets it to bottom. */ diff --git a/types/react-select/src/types.d.ts b/types/react-select/src/types.d.ts index 74413ebc8c..790e54e456 100644 --- a/types/react-select/src/types.d.ts +++ b/types/react-select/src/types.d.ts @@ -33,6 +33,7 @@ export interface PropsWithStyles { See the `styles` object for the properties available. */ getStyles: (name: string, props: any) => {}; + theme: Theme; } export type ClassNameList = string[];