fix(donate): re-order and scroll to top on processing
This commit is contained in:
@@ -85,7 +85,6 @@ class DonateFormChildViewForHOC extends Component {
|
||||
|
||||
handleSubmit(e) {
|
||||
e.preventDefault();
|
||||
this.hideAmountOptions(true);
|
||||
const email = this.getUserEmail();
|
||||
if (!email || !isEmail(email)) {
|
||||
return this.setState(state => ({
|
||||
@@ -130,6 +129,10 @@ class DonateFormChildViewForHOC extends Component {
|
||||
}
|
||||
}));
|
||||
|
||||
// hide the donation options on the parent and scroll to top
|
||||
this.hideAmountOptions(true);
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
return postChargeStripe({
|
||||
token,
|
||||
amount,
|
||||
|
Reference in New Issue
Block a user