From 8d0cdb374d4b88466e225cffbeb8e7097bb1f71d Mon Sep 17 00:00:00 2001 From: Andrzej Skrodzki Date: Tue, 12 Apr 2016 16:35:06 +0100 Subject: [PATCH] Update avaiable hooks. (#8909) Apply comments. Minor changes. --- react-select/react-select-tests.tsx | 4 +++- react-select/react-select.d.ts | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 */