Skip to content

Commit

Permalink
Revert docsearch init method
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Nov 28, 2023
1 parent cae5b42 commit c5dae90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/showcase/layout/topbar/app.topbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

<ul class="flex list-none m-0 p-0 gap-2 align-items-center ">
<li>
<div #docSearch id="docsearch"></div>
<div id="docsearch"></div>
</li>
<li>
<a href="https://github.com/primefaces/primeng" target="_blank" rel="noopener noreferrer"
Expand Down
8 changes: 0 additions & 8 deletions src/app/showcase/layout/topbar/app.topbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export class AppTopBarComponent implements OnInit, OnDestroy {

@Input() showMenuButton = true;

@ViewChild('docSearch') docSearch: ElementRef;

@Output() onDarkModeSwitch = new EventEmitter<any>();

versions: any[] = Versions;
Expand All @@ -44,12 +42,6 @@ export class AppTopBarComponent implements OnInit, OnDestroy {
}
}

ngAfterViewChecked() {
if (!this.docSearch.nativeElement.children.length) {
this.initDocSearch();
}
}

toggleMenu() {
if (this.configService.state.menuActive) {
this.configService.hideMenu();
Expand Down

0 comments on commit c5dae90

Please sign in to comment.