Skip to content

Commit

Permalink
Fixed #12273 - Remove condition in hide
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Nov 28, 2022
1 parent 6e6b55d commit f1a195a
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions src/app/components/overlaypanel/overlaypanel.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations';
import { CommonModule } from '@angular/common';
import {
NgModule,
AfterContentInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChildren,
ElementRef,
EventEmitter,
Input,
Output,
NgModule,
NgZone,
OnDestroy,
EventEmitter,
Output,
QueryList,
Renderer2,
ElementRef,
ChangeDetectorRef,
NgZone,
ContentChildren,
TemplateRef,
AfterContentInit,
QueryList,
ChangeDetectionStrategy,
ViewEncapsulation,
ViewRef
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
import { SharedModule, PrimeTemplate, PrimeNGConfig, OverlayService } from 'primeng/api';
import { OverlayService, PrimeNGConfig, PrimeTemplate, SharedModule } from 'primeng/api';
import { ConnectedOverlayScrollHandler, DomHandler } from 'primeng/dom';
import { RippleModule } from 'primeng/ripple';
import { trigger, state, style, transition, animate, AnimationEvent } from '@angular/animations';
import { ZIndexUtils } from 'primeng/utils';
import { Subscription } from 'rxjs';

Expand Down Expand Up @@ -334,10 +334,6 @@ export class OverlayPanel implements AfterContentInit, OnDestroy {
}

hide() {
if (this.isOverlayAnimationInProgress) {
return;
}

this.overlayVisible = false;
this.cd.markForCheck();
}
Expand Down

0 comments on commit f1a195a

Please sign in to comment.