dev/core#4912 Fix 'other amount' losing focus
authorAndrew West <me@awest.uk>
Mon, 15 Jan 2024 16:29:19 +0000 (16:29 +0000)
committercolemanw <coleman@civicrm.org>
Mon, 15 Jan 2024 23:27:14 +0000 (18:27 -0500)
https://lab.civicrm.org/dev/core/-/issues/4912

templates/CRM/Contribute/Form/Contribution/Main.tpl

index 84f8490e06353920d35c658b0acd001756455928..d44bd2b60028e7763084cab804f3d15ac7708f06 100644 (file)
@@ -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;