Skip to content

Commit

Permalink
enhance(backdrop): pass MouseEvent to onBackdropTap callback
Browse files Browse the repository at this point in the history
  • Loading branch information
hackal authored and roman-rr committed Nov 2, 2022
1 parent 23af735 commit bc8d5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/backdrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class BackdropModule {
this.backdropEl.style.transition = `all ${this.settings.animationDuration}ms ${this.settings.animationType} 0s`;
this.backdropEl.style.backgroundColor = `rgba(0,0,0, ${this.settings.backdropOpacity})`;
this.instance.wrapperEl.appendChild(this.backdropEl);
this.backdropEl.addEventListener('click', () => this.instance.emit('onBackdropTap'));
this.backdropEl.addEventListener('click', (event) => this.instance.emit('onBackdropTap', event));
}

private isBackdropPresented() {
Expand Down

0 comments on commit bc8d5ca

Please sign in to comment.