Skip to content

Commit

Permalink
Merge pull request #12295 from primefaces/issue-12284
Browse files Browse the repository at this point in the history
Fixed #12284 - Input in Overlaypanel won't have focus
  • Loading branch information
cetincakiroglu authored Nov 28, 2022
2 parents 6e6b55d + ccf9389 commit 5f7cb92
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 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 @@ -270,7 +270,6 @@ export class OverlayPanel implements AfterContentInit, OnDestroy {
onAnimationStart(event: AnimationEvent) {
if (event.toState === 'open') {
this.container = event.element;
this.onShow.emit(null);
this.appendContainer();
this.align();
this.bindDocumentClickListener();
Expand All @@ -288,6 +287,7 @@ export class OverlayPanel implements AfterContentInit, OnDestroy {
};

this.overlaySubscription = this.overlayService.clickObservable.subscribe(this.overlayEventListener);
this.onShow.emit(null);
}

this.isOverlayAnimationInProgress = true;
Expand Down

0 comments on commit 5f7cb92

Please sign in to comment.