From d8a0aa355e6f8cd2fdee1ec6fc5a70f57ed0905a Mon Sep 17 00:00:00 2001 From: MalinSvenberg <56155987+MalinSvenberg@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:52:53 +0200 Subject: [PATCH] feat: adds submit role to add button (#693) --- 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)}