Skip to content

Commit

Permalink
Revert "removes forwardRef from SearchLabeledInput"
Browse files Browse the repository at this point in the history
This reverts commit 7449183.
  • Loading branch information
Piotr Fałdrowicz committed Dec 9, 2024
1 parent 7449183 commit 1520e37
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export type SearchLabeledInputProps = PropsWithChildren<{
name: string;
}>;

export const SearchLabeledInput = ({ children, ...props }) => {
export const SearchLabeledInput = forwardRef<HTMLInputElement, SearchLabeledInputProps>(({ children, ...props }, ref) => {
return (
<FormControl sx={{ display: "flex", flexDirection: "column", m: 0, gap: 1, width: "100%" }}>
{children}
<input {...props} className={nodeInput} />
<input ref={ref} {...props} className={nodeInput} />
</FormControl>
);
};
});

SearchLabeledInput.displayName = "SearchLabeledInput";

0 comments on commit 1520e37

Please sign in to comment.