mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 04:37:56 +00:00 
			
		
		
		
	minor fix - fixed forwardRef and unique key console errors (#7337)
context - #7183
This commit is contained in:
		| @@ -36,15 +36,15 @@ const StyledInput = styled.input` | ||||
| export const DropdownMenuSearchInput = forwardRef< | ||||
|   HTMLInputElement, | ||||
|   InputHTMLAttributes<HTMLInputElement> | ||||
| >(({ value, onChange, placeholder = 'Search', type }) => { | ||||
| >(({ value, onChange, placeholder = 'Search', type }, forwardedRef) => { | ||||
|   const { inputRef } = useInputFocusWithoutScrollOnMount(); | ||||
|  | ||||
|   const ref = forwardedRef ?? inputRef; | ||||
|   return ( | ||||
|     <StyledDropdownMenuSearchInputContainer> | ||||
|       <StyledInput | ||||
|         autoComplete="off" | ||||
|         {...{ onChange, placeholder, type, value }} | ||||
|         ref={inputRef} | ||||
|         ref={ref} | ||||
|       /> | ||||
|     </StyledDropdownMenuSearchInputContainer> | ||||
|   ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 nitin
					nitin