Skip to content

Commit

Permalink
fix github demo
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 10, 2019
1 parent 0f17e80 commit 15908e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/GitHubLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default function GitHubLabel() {
getOptionLabel={option => option.name}
renderInput={params => (
<InputBase
ref={params.ref}
ref={params.InputProps.ref}
inputProps={params.inputProps}
autoFocus
className={classes.inputBase}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/GitHubLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default function GitHubLabel() {
getOptionLabel={(option: LabelType) => option.name}
renderInput={params => (
<InputBase
ref={params.ref}
ref={params.InputProps.ref}
inputProps={params.inputProps}
autoFocus
className={classes.inputBase}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export interface RenderGroupParams {
}

export interface RenderInputParams {
ref: React.Ref<any>;
disabled: boolean;
InputLabelProps: object;
InputProps: {
ref: React.Ref<any>;
className: string;
startAdornment: React.ReactNode;
endAdornment: React.ReactNode;
Expand Down

0 comments on commit 15908e9

Please sign in to comment.