diff --git a/src-ts/lib/form/Form.tsx b/src-ts/lib/form/Form.tsx index 3b572f6f1..54ec1f0e5 100644 --- a/src-ts/lib/form/Form.tsx +++ b/src-ts/lib/form/Form.tsx @@ -121,7 +121,7 @@ const Form: (props: FormProps diff --git a/src-ts/lib/form/form-groups/FormGroups.tsx b/src-ts/lib/form/form-groups/FormGroups.tsx index a67702984..9ac4f40cf 100644 --- a/src-ts/lib/form/form-groups/FormGroups.tsx +++ b/src-ts/lib/form/form-groups/FormGroups.tsx @@ -100,8 +100,8 @@ const FormGroups: (props: FormGroupsProps) => JSX.Element = (props: FormGroupsPr ) } - const formGroups: Array = formDef?.groups?.map((element: FormGroup) => { - return + const formGroups: Array = formDef?.groups?.map((element: FormGroup, index: number) => { + return }) || [] return ( diff --git a/src-ts/lib/form/form-groups/form-card-set/FormCardSet.module.scss b/src-ts/lib/form/form-groups/form-card-set/FormCardSet.module.scss index 73bc35d14..0e938f55c 100644 --- a/src-ts/lib/form/form-groups/form-card-set/FormCardSet.module.scss +++ b/src-ts/lib/form/form-groups/form-card-set/FormCardSet.module.scss @@ -9,13 +9,8 @@ margin-bottom: $pad-lg; } - input[type=radio] { - position: absolute; + input[type=radio] { opacity: 0; - left: 0; - right: 0; - top: 0; - bottom: 0; } .card { diff --git a/src-ts/lib/form/form-groups/form-card-set/FormCardSet.tsx b/src-ts/lib/form/form-groups/form-card-set/FormCardSet.tsx index ac5452b9f..665af51a1 100644 --- a/src-ts/lib/form/form-groups/form-card-set/FormCardSet.tsx +++ b/src-ts/lib/form/form-groups/form-card-set/FormCardSet.tsx @@ -25,23 +25,22 @@ const FormCardSet: React.FC = ({ name, cards, onChange, value return (
{ - cards?.map(card => { + cards?.map((card, index: number) => { const formattedPrice: string | undefined = textFormatMoneyLocaleString(card.price) const selected: boolean = value === card.id return ( - -