From 0b59dadb670c24009c3a82622f2bdca7aecc4837 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 25 Jun 2026 12:08:36 -0500 Subject: [PATCH] fix: PIN copy revert uses data-pin instead of captured text Clicking while showing "Copied!" captured "Copied!" as the revert value, so the PIN text never returned. Now uses the stable data-pin attribute as the revert source. --- .../com_mokosuiteclient/admin/src/Helper/SupportPinHelper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/packages/com_mokosuiteclient/admin/src/Helper/SupportPinHelper.php b/source/packages/com_mokosuiteclient/admin/src/Helper/SupportPinHelper.php index ab2fa14e..d0f8a2db 100644 --- a/source/packages/com_mokosuiteclient/admin/src/Helper/SupportPinHelper.php +++ b/source/packages/com_mokosuiteclient/admin/src/Helper/SupportPinHelper.php @@ -197,9 +197,8 @@ class SupportPinHelper var textEl = this.querySelector('.mokosuiteclient-pin-text'); navigator.clipboard.writeText(pin).then(function() { if (textEl) { - var orig = textEl.textContent; textEl.textContent = 'Copied!'; - setTimeout(function() { textEl.textContent = orig; }, 30000); + setTimeout(function() { textEl.textContent = pin; }, 30000); } }); }