Skip to content

Commit

Permalink
fix: Autocomplete can't be focused akveo#1744 (akveo#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
bataevvlad committed Jun 12, 2023
1 parent adac8e5 commit ee7aa83
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const requestData = (): Promise<Response> => fetch('https://reactnative.dev/movi
const requestDataWithDebounce = AwesomeDebouncePromise(requestData, 400);

export const AutocompleteAsyncShowcase = (): React.ReactElement => {

const autocompleteRef = React.useRef(null);
const [query, setQuery] = React.useState(null);
const [data, setData] = React.useState([]);

Expand Down Expand Up @@ -42,6 +42,7 @@ export const AutocompleteAsyncShowcase = (): React.ReactElement => {

return (
<Autocomplete
ref={autocompleteRef}
placeholder='For example, Star Wars'
value={query}
placement='inner top'
Expand Down

0 comments on commit ee7aa83

Please sign in to comment.