Contribution Radio Buttons Incorrectly add other Amount
Overview
With the focus fix for Contribution (Main.tpl), there is still an issue with the Other Amount being added to the original, default amount.
The Other Amount should not be adding to the original, unchecked amount.
Reproduction steps
- Click on your public facing Contribute page, civicrm/contribute/transact/?reset=1&id=1
- Clicked in Other Amount text box and added $20
- This added $20 to the default amount resulting in $70 for the amount, instead of $20
Current behaviour
Expected behaviour
This should clear the initial amount and only show the Other Amount, and move focus to the Other Amount button.
Environment information
- CiviCRM: 5.69.2
- PHP: 8.1
- CMS: Wordpress