Country field is validated within the billing block by jquery even when not showing e.g user has selected a $0 option
Overview
When you have a contribution page and there is a free option ($0) if you do not have a default country set then on a stick CiviCRM you will not be able to move to the next step when submitting a public contribution as jQuery tries to validate the country field
Reproduction steps
- Ensure that under the languages / currency settings there is no default country set.
- Create a new contribution page ensuring that in the amounts tab you include a free option
- Try and submit a new contribution as an anon user
Current behaviour
Cannot submit contribution as jQuery tries to validate the off screen country field
Expected behaviour
Form should be submitted
Environment information
- CiviCRM: 5.28.0