From dbb460375f31f7bd9d33fd8325dfd08eb41238dc Mon Sep 17 00:00:00 2001 From: karolina-siemieniuk-morawska Date: Mon, 29 Jan 2024 11:25:00 +0100 Subject: [PATCH] friday improvement: fix submit on enter on local login page * ref: cern-sis/issues-inspire#434 --- ui/src/user/components/LocalLoginPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/user/components/LocalLoginPage.tsx b/ui/src/user/components/LocalLoginPage.tsx index 7b64af87b5..c3a7e1c015 100644 --- a/ui/src/user/components/LocalLoginPage.tsx +++ b/ui/src/user/components/LocalLoginPage.tsx @@ -13,8 +13,8 @@ const LocalLoginPage = ({ ) => void | Promise) & Function; }) => { - function renderFormInput({ field, ...props }: { field: JSX.Element, props: any }) { - return ; + function renderFormInput({ form, field, ...rest }: { form: any, field: JSX.Element, rest: any }) { + return ; } function renderLoginForm() {