From a24b9ff543b79c6b1ffe10da90738e36d6fb29bd Mon Sep 17 00:00:00 2001 From: AssisrMatheus Date: Tue, 23 Aug 2022 10:23:32 -0400 Subject: [PATCH] fix: downshift content props already imports autocomplete props --- src/components/AutocompleteInput/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/AutocompleteInput/index.tsx b/src/components/AutocompleteInput/index.tsx index 6d6fe1f..1a32a23 100644 --- a/src/components/AutocompleteInput/index.tsx +++ b/src/components/AutocompleteInput/index.tsx @@ -220,8 +220,7 @@ const DownshiftAutocompleteContent = ({ help, ...props -}: DownshiftAutocompleteContentProps & - Omit, 'value' | 'defaultValue'>) => { +}: DownshiftAutocompleteContentProps) => { // I use ref instead of state for this, because I don't want it to trigger an effect or re-render. // I could simply not use it on the deps array, BUT then the value wouldn't be up to date inside the effect scope const isFetchingRef = useRef(false);