diff --git a/react-select/react-select-tests.tsx b/react-select/react-select-tests.tsx index 444551a67..f9fdc8600 100644 --- a/react-select/react-select-tests.tsx +++ b/react-select/react-select-tests.tsx @@ -12,8 +12,10 @@ class SelectTest extends React.Component, {}> { render() { const options: ReactSelect.Option[] = [{ label: "Foo", value: "bar" }] + const onOpen = () => { return; }; + const onClose = () => { return; }; return
-
} diff --git a/react-select/react-select.d.ts b/react-select/react-select.d.ts index c9e385a15..061348c07 100644 --- a/react-select/react-select.d.ts +++ b/react-select/react-select.d.ts @@ -153,9 +153,12 @@ declare namespace ReactSelect { */ onBlurResetsInput?: boolean; onChange?: (newValue: Option | Option[]) => void; + onClose?: () => void; onFocus?: __React.FocusEventHandler; onInputChange?: (inputValue: string) => void; + onOpen?: () => void; onOptionLabelClick?: (value: string, event: Event) => void; + /** * function which returns a custom way to render the options in the menu */