Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
s7dhansh committed Jul 21, 2021
1 parent d733483 commit 11ef5d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion react-hook-form-mui/src/forms/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ import parse from 'autosuggest-highlight/parse';
import match from 'autosuggest-highlight/match';
import PropTypes from 'prop-types';
import {useDebounceCallback} from '@react-hook/debounce';
import Chip from '@material-ui/core/Chip';

export default function Autocomplete({
optionsAsync,
Expand Down
3 changes: 1 addition & 2 deletions react-hook-form-mui/stories/react-hook-form/Fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function DemoForm({onSubmit}) {
}, 1000);
};

const defaultValues = {text: 'name'};
const defaultValues = {text: 'name', auto: []};
const form = useForm({
defaultValues,
mode: 'onChange',
Expand All @@ -79,7 +79,6 @@ function DemoForm({onSubmit}) {
container={{xs: 12}}
getOptionLabel={(option) => (typeof option === 'string' ? option : option.label)}
label='Autocomplete'
multiple
name='auto'
optionsAsync={(inputValue, setOptions) => setOptions(top100Films.filter(o => o.label.includes(inputValue)))}
type='autocomplete'
Expand Down

0 comments on commit 11ef5d4

Please sign in to comment.