Skip to content

Commit

Permalink
Fix nav bar
Browse files Browse the repository at this point in the history
Previously, the submenu's position was not relative to the body,
this causes the submenu to be out of position
  • Loading branch information
limcaaarl committed Oct 23, 2024
1 parent 146893e commit d11a8f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ng-template>
<ng-template pTemplate="end">
@if (user) {
<p-menu #menu [model]="items" [popup]="true"></p-menu>
<p-menu #menu [model]="items" [popup]="true" appendTo="body"></p-menu>
<p-button
[label]="user.username"
(onClick)="menu.toggle($event)"
Expand Down

0 comments on commit d11a8f5

Please sign in to comment.