Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Revert "fix: FormItemLayout does not apply item id correctly" (#49635)

Gildas Garcia57a6f7440777
diff --git a/packages/ui-patterns/src/form/Layout/FormLayout.tsx b/packages/ui-patterns/src/form/Layout/FormLayout.tsx
index e944eab71a5..37f67aa61a3 100644
--- a/packages/ui-patterns/src/form/Layout/FormLayout.tsx
+++ b/packages/ui-patterns/src/form/Layout/FormLayout.tsx
@@ -398,6 +398,7 @@ export const FormLayout = React.forwardRef<
<FormLabel
className="text-foreground flex gap-2 items-center wrap-break-word"
data-formlayout-id="formLabel"
+ htmlFor={props.name || id}
>
<LabelContents />
</FormLabel>