Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Jul 5, 2024
1 parent b2531de commit 3e16a8d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/components/overlay/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,18 @@ export class Overlay implements AfterContentInit, OnDestroy {

switch (event.toState) {
case 'visible':
this.show(container, true);
if (this.visible) {
this.show(container, true);
}
this.bindListeners();

break;

case 'void':
this.hide(container, true);
if (!this.visible) {
this.hide(container, true);
}

this.unbindListeners();

DomHandler.appendOverlay(this.overlayEl, this.targetEl, this.appendTo);
Expand Down

0 comments on commit 3e16a8d

Please sign in to comment.