Conflicts:
	react-select/react-select-tests.tsx
This commit is contained in:
2016-04-13 13:09:48 +08:00
98 changed files with 19714 additions and 2194 deletions
+4
View File
@@ -12,6 +12,8 @@ class SelectTest extends React.Component<React.Props<{}>, {}> {
render() {
const options: ReactSelect.Option[] = [{ label: "Foo", value: "bar" }];
const onChange = (value: any) => console.log(value);
const onOpen = () => { return; };
const onClose = () => { return; };
return <div>
<Select
name="test-select"
@@ -22,6 +24,8 @@ class SelectTest extends React.Component<React.Props<{}>, {}> {
matchProp={"any"}
multi={true}
onValueClick={onChange}
onOpen={onOpen}
onClose={onClose}
valueKey="github"
labelKey="name"
onChange={onChange}
+3
View File
@@ -154,9 +154,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
*/