From d701e4e657a3656fc07387f93ff48d8650b7ae21 Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Thu, 21 Dec 2023 14:34:15 +0100 Subject: [PATCH] Revert "feat: disable button on click (#171)" (#176) This reverts commit c159a4107f4f741ec52d84954da50ae4610245d3. --- src/assets/passwordInput.js | 6 ------ src/react-components/ory/user-logout-card.tsx | 1 - 2 files changed, 7 deletions(-) diff --git a/src/assets/passwordInput.js b/src/assets/passwordInput.js index 068cde920..8876870cc 100644 --- a/src/assets/passwordInput.js +++ b/src/assets/passwordInput.js @@ -26,9 +26,3 @@ document.getElementsByName("password").forEach((p) => { }) } }) - -document.querySelectorAll(`*[data-disable-on-click]`).forEach((p) => { - p.addEventListener("click", function () { - p.disabled = true - }) -}) diff --git a/src/react-components/ory/user-logout-card.tsx b/src/react-components/ory/user-logout-card.tsx index 8f90ff124..2c78f4a78 100644 --- a/src/react-components/ory/user-logout-card.tsx +++ b/src/react-components/ory/user-logout-card.tsx @@ -71,7 +71,6 @@ export const UserLogoutCard = ({ type="submit" id="accept" value="Yes" - data-disable-on-click name="submit" variant="semibold" header={intl.formatMessage({