From 5b53d5752091d36cc4dc241b241881a4da8ad379 Mon Sep 17 00:00:00 2001 From: Andrew West Date: Mon, 15 Jan 2024 16:29:19 +0000 Subject: [PATCH] dev/core#4912 Fix 'other amount' losing focus https://lab.civicrm.org/dev/core/-/issues/4912 --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 84f8490e06..d44bd2b600 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -22,7 +22,7 @@ element = document.Main.elements[i]; if ( element.type == 'radio' && element.name === mainPriceFieldName ) { if (element.value == '0' ) { - element.click(); + element.checked = true; } else { element.checked = false; -- 2.25.1