Update avaiable hooks. (#8909)

Apply comments.

Minor changes.
This commit is contained in:
Andrzej Skrodzki
2016-04-12 16:35:06 +01:00
committed by Masahiro Wakame
parent 2bb5e51050
commit 8d0cdb374d
2 changed files with 6 additions and 1 deletions

View File

@@ -12,8 +12,10 @@ class SelectTest extends React.Component<React.Props<{}>, {}> {
render() {
const options: ReactSelect.Option[] = [{ label: "Foo", value: "bar" }]
const onOpen = () => { return; };
const onClose = () => { return; };
return <div>
<Select options={options} />
<Select options={options} onOpen={onOpen} onClose={onClose} />
</div>
}

View File

@@ -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
*/