Skip to content

Commit

Permalink
refactor: fix lost context & trigger click
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-murashko committed Feb 3, 2021
1 parent a2f8f79 commit 9e2ff2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/modules/esl-base-trigger/core/esl-base-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,13 @@ export class ESLBaseTrigger extends ESLBaseElement {
activator: this,
delay: this.showDelayValue
});
e.preventDefault();
}
@bind
protected _onHideEvent(e: Event) {
this.popup.hide({
activator: this,
delay: this.hideDelayValue
});
e.preventDefault();
}
@bind
protected _onToggleEvent(e: Event) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/esl-panel/core/esl-panel-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ESLPanelStack extends ESLBaseElement {

this.beforeAnimate();
this.onAnimate(this._previousHeight, panel.initialHeight);
this.fallbackDuration >= 0 && setTimeout(this.afterAnimate, this.fallbackDuration);
this.fallbackDuration >= 0 && setTimeout(() => this.afterAnimate(), this.fallbackDuration);
}

@bind
Expand Down

0 comments on commit 9e2ff2d

Please sign in to comment.