Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

forward ref to SelectItemBase

Oleg Isonen801e90c93e43
diff --git a/app/shared/design-system/components/select.tsx b/app/shared/design-system/components/select.tsx
index 7fdee4fff7..12f09ef3b8 100644
--- a/app/shared/design-system/components/select.tsx
+++ b/app/shared/design-system/components/select.tsx
@@ -115,9 +115,12 @@ const SelectScrollDownButton = styled(
scrollButtonStyles
);
-const SelectItemBase = ({ children, ...props }: SelectItemProps) => {
+const SelectItemBase = (
+ { children, ...props }: SelectItemProps,
+ forwardedRef: Ref<HTMLDivElement>
+) => {
return (
- <StyledItem {...props}>
+ <StyledItem {...props} ref={forwardedRef}>
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
<StyledItemIndicator>
<CheckIcon />