Skip to content

Commit

Permalink
fix: events bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Jan 21, 2020
1 parent edb6fb5 commit e68f25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StripeBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class StripeBase extends ReadOnlyPropertiesMixin(LitNotify(LitElement)) {
* @private
*/
fire(type, detail, opts = {}) {
this.dispatchEvent(new CustomEvent(type, { detail, ...opts }));
this.dispatchEvent(new CustomEvent(type, { bubbles: true, detail, ...opts }));
}

/**
Expand All @@ -252,7 +252,7 @@ export class StripeBase extends ReadOnlyPropertiesMixin(LitNotify(LitElement)) {
* @private
*/
fireError(error) {
this.dispatchEvent(new ErrorEvent('stripe-error', { error }));
this.dispatchEvent(new ErrorEvent('stripe-error', { bubbles: true, error }));
}

/**
Expand Down

0 comments on commit e68f25c

Please sign in to comment.