Skip to content

Commit

Permalink
fix: clear new-action-items after click cancel button
Browse files Browse the repository at this point in the history
  • Loading branch information
Tata-Sysueva committed Sep 22, 2022
1 parent 4303083 commit 6c457d3
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ const ActionItemsContainer: React.FC = () => {
setModalOpen(false);
handleDeleteAssignment();
//handleAddConfirmComment();
};

const handleCancel = () => {
setConfirmComment("");
setModalOpen(false);
}

const getColumnName = (name: string) => {
Expand Down Expand Up @@ -175,11 +180,11 @@ const ActionItemsContainer: React.FC = () => {
))}
</DragDropContext>
<div className={isModalOpen ? "modal-visible" : "modal-hidden"}>
<Modal onClose={() => setModalOpen(false)} >
<Modal onClose={handleCancel} >
<ModalConfirm
textModal={TextModal.DeleteAssignment}
onConfirm={handleSubmit}
onCancel={() => setModalOpen(false)}
onCancel={handleCancel}
disabledButton={isShort || isLong}
>
<textarea
Expand Down

0 comments on commit 6c457d3

Please sign in to comment.