From 1e9ac5122e99ddd834e9f5e3839fb26df8f3e5d4 Mon Sep 17 00:00:00 2001 From: Jared Galanis Date: Wed, 7 Dec 2022 13:59:16 -0500 Subject: [PATCH] Revert "fix bug re confirmation submission checkbox not blocking progression" This reverts commit 2ac01c604a7cf7c3068fce81bad2234546cac22d. --- app/components/workflow-review/index.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/components/workflow-review/index.js b/app/components/workflow-review/index.js index 55cf0986..bfceb6dc 100644 --- a/app/components/workflow-review/index.js +++ b/app/components/workflow-review/index.js @@ -122,17 +122,6 @@ export default class WorkflowReview extends Component { input: 'checkbox', inputPlaceholder: "I agree to the above statement on today's date ", confirmButtonText: 'Next →', - onOpen: function () { - const checkbox = document.getElementById('swal2-checkbox'); - swal.disableConfirmButton(); - checkbox.addEventListener('click', function (e) { - if (e.target.checked) { - swal.enableConfirmButton(); - } else { - swal.disableConfirmButton(); - } - }); - }, progressSteps: reposWithAgreementText.map((repo, index) => index + 1), }) .queue(reposWithAgreementText);