{index + 1 < GOVERNANCE_ACTION_TYPES.length ?
: null}
- >
+
);
});
};
diff --git a/govtool/frontend/src/components/organisms/ControlledField/Input.tsx b/govtool/frontend/src/components/organisms/ControlledField/Input.tsx
index a58d4c91d..d9a2e2f34 100644
--- a/govtool/frontend/src/components/organisms/ControlledField/Input.tsx
+++ b/govtool/frontend/src/components/organisms/ControlledField/Input.tsx
@@ -1,32 +1,33 @@
-import { useCallback } from "react";
+import { forwardRef, useCallback } from "react";
import { Controller, get } from "react-hook-form";
import { Field } from "@molecules";
import { ControlledInputProps, RenderInputProps } from "./types";
-export const Input = ({
- control,
- name,
- errors,
- rules,
- ...props
-}: ControlledInputProps) => {
- const errorMessage = get(errors, name)?.message as string;
+export const Input = forwardRef