Skip to content

Commit

Permalink
feat: adds submit role to add button (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinSvenberg authored Jul 4, 2023
1 parent b15cfb0 commit d8a0aa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/main/NewItemModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
</Button>
Expand All @@ -214,6 +215,7 @@ const NewItemModal = ({ open, handleClose }: Props): JSX.Element => {
isConfirmButtonDisabled ||
!isItemValid(updatedPropertiesPerType[selectedItemType])
}
type="submit"
>
{translateBuilder(BUILDER.CREATE_ITEM_ADD_BUTTON)}
</Button>
Expand Down

0 comments on commit d8a0aa3

Please sign in to comment.