From: Andrew West Date: Mon, 15 Jan 2024 16:29:19 +0000 (+0000) Subject: dev/core#4912 Fix 'other amount' losing focus X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5b53d5752091d36cc4dc241b241881a4da8ad379;p=civicrm-core.git dev/core#4912 Fix 'other amount' losing focus https://lab.civicrm.org/dev/core/-/issues/4912 --- 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;