mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped
Conflicts: react-select/react-select-tests.tsx
This commit is contained in:
@@ -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}
|
||||
|
||||
Vendored
+3
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user