From c2674bfb206ba7e53726c4b60ef30eb5828f83d4 Mon Sep 17 00:00:00 2001 From: Nitin Koche Date: Mon, 30 Sep 2024 18:09:38 +0530 Subject: [PATCH] fixed errors --- .../components/ObjectFilterDropdownFilterSelect.tsx | 2 +- .../layout/dropdown/components/DropdownMenuSearchInput.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx index 59ee04d92518..f0c2d66cdc7e 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx @@ -96,9 +96,9 @@ export const ObjectFilterDropdownFilterSelect = () => { (availableFilterDefinition, index) => ( diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuSearchInput.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuSearchInput.tsx index b9f1bc87d286..ec761aa46680 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuSearchInput.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuSearchInput.tsx @@ -36,15 +36,15 @@ const StyledInput = styled.input` export const DropdownMenuSearchInput = forwardRef< HTMLInputElement, InputHTMLAttributes ->(({ value, onChange, placeholder = 'Search', type }) => { +>(({ value, onChange, placeholder = 'Search', type }, forwardedRef) => { const { inputRef } = useInputFocusWithoutScrollOnMount(); - + const ref = forwardedRef ?? inputRef; return ( );