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) {
|
handleSubmit(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.hideAmountOptions(true);
|
|
||||||
const email = this.getUserEmail();
|
const email = this.getUserEmail();
|
||||||
if (!email || !isEmail(email)) {
|
if (!email || !isEmail(email)) {
|
||||||
return this.setState(state => ({
|
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({
|
return postChargeStripe({
|
||||||
token,
|
token,
|
||||||
amount,
|
amount,
|
||||||
|
Reference in New Issue
Block a user