1
0
mirror of https://github.com/beestat/app.git synced 2025-05-23 18:04:14 -04:00

Fixed beestat contribute not resetting when changing amount

This commit is contained in:
Jon Ziebell 2023-11-29 19:02:40 -05:00
parent 9b40c81b85
commit a8016a0376

View File

@ -156,6 +156,7 @@ beestat.component.card.contribute.prototype.decorate_contents_ = function(parent
.set_background_hover_color(beestat.style.color.green.base);
tile_amount.addEventListener('click', function() {
self.state_.stripe_connecting = false;
self.state_.contribute_amount_other_enabled = false;
self.state_.contribute_amount = amount;
self.rerender();
@ -199,6 +200,7 @@ beestat.component.card.contribute.prototype.decorate_contents_ = function(parent
'decimals': 2
});
other_amount_input.addEventListener('blur', function() {
self.state_.stripe_connecting = false;
if (this.meets_requirements() === true) {
self.state_.contribute_amount_other = this.get_value();
self.rerender();
@ -234,6 +236,7 @@ beestat.component.card.contribute.prototype.decorate_contents_ = function(parent
.set_background_hover_color(beestat.style.color.lightblue.base);
tile_frequency.addEventListener('click', function() {
self.state_.stripe_connecting = false;
self.state_.contribute_interval = frequency;
self.rerender();
});