From 412b49fea821232e8752bfb0bc8f9287d7e88771 Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Fri, 6 Dec 2024 15:03:01 +0100 Subject: [PATCH 1/2] fix: Pass `required` to wrapped `input` Currently, `` will not make the `` itself required. --- packages/wedges/src/components/Input/Input.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/wedges/src/components/Input/Input.tsx b/packages/wedges/src/components/Input/Input.tsx index 2d081fd..62f4646 100644 --- a/packages/wedges/src/components/Input/Input.tsx +++ b/packages/wedges/src/components/Input/Input.tsx @@ -66,6 +66,7 @@ const Input = React.forwardRef( )} disabled={disabled} id={elId} + required={required} {...otherProps} /> From 3046383e5b1e9fe784c65a4d2678e826dbdfae0a Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Fri, 6 Dec 2024 15:20:34 +0100 Subject: [PATCH 2/2] fix: Handle `Checkbox` too --- packages/wedges/src/components/Checkbox/Checkbox.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/wedges/src/components/Checkbox/Checkbox.tsx b/packages/wedges/src/components/Checkbox/Checkbox.tsx index b368b0b..7782eb6 100644 --- a/packages/wedges/src/components/Checkbox/Checkbox.tsx +++ b/packages/wedges/src/components/Checkbox/Checkbox.tsx @@ -154,6 +154,7 @@ const CheckboxWedges = React.forwardRef( )} disabled={isDisabled} id={elId} + required={required} {...otherProps} > {renderEmptyBox}