diff --git a/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx b/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx index 94b7bd8e943..8a903955dfc 100644 --- a/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx +++ b/packages/desktop-client/src/components/autocomplete/Autocomplete.tsx @@ -398,10 +398,7 @@ function SingleAutocomplete({ }, onBlur: e => { // Should this be e.nativeEvent - // preventDownshiftDefault is a downshift.js property - they don't have types for it on the React event - // Suggested way to make this work with typescript is to cast as any... https://github.com/downshift-js/downshift/issues/734 - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (e as any).preventDownshiftDefault = true; + e['preventDownshiftDefault'] = true; inputProps.onBlur?.(e); if (!closeOnBlur) return;