From b8abd8bf525fd58ba448b1ee066139974abba7c8 Mon Sep 17 00:00:00 2001 From: Malin Svenberg Date: Sun, 2 Jul 2023 17:03:41 +0200 Subject: [PATCH] feat: adds submit role to add button --- src/components/main/NewItemModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/main/NewItemModal.tsx b/src/components/main/NewItemModal.tsx index e5a751422..8ad0c8c94 100644 --- a/src/components/main/NewItemModal.tsx +++ b/src/components/main/NewItemModal.tsx @@ -195,6 +195,7 @@ const NewItemModal = ({ open, handleClose }: Props): JSX.Element => { onClick={submitEtherpad} id={ITEM_FORM_CONFIRM_BUTTON_ID} disabled={!padName} + type="submit" > {translateBuilder(BUILDER.CREATE_ITEM_ADD_BUTTON)} @@ -214,6 +215,7 @@ const NewItemModal = ({ open, handleClose }: Props): JSX.Element => { isConfirmButtonDisabled || !isItemValid(updatedPropertiesPerType[selectedItemType]) } + type="submit" > {translateBuilder(BUILDER.CREATE_ITEM_ADD_BUTTON)}