Skip to content

Commit

Permalink
Add check on scroll element
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Oct 14, 2024
1 parent 257dc08 commit e7ba489
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/app/communities/communities.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
You have communities in draft mode. Please review any status update on their verification status.
<br /><br />
@for(draft of drafts(); track draft) {
<a [routerLink]="['/communities', 'create', draft.id]">{{ draft.data.name }}&nbsp;</a> - Awaiting approval<br />
<a [routerLink]="['/communities', 'create', draft.id]">{{ draft.data.name }} - Awaiting approval</a><br />
<!-- <a [routerLink]="['/communities', 'create']">Knitting Party 101</a> - Draft<br /> -->
}
</div>
Expand Down
5 changes: 4 additions & 1 deletion app/src/app/layout.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ export class LayoutService {
// element.scrollTop = 0;

const elementContent = document.querySelector('.sidenav-content') as any;
elementContent.scrollTop = 0;

if (elementContent) {
elementContent.scrollTop = 0;
}
}

disableScrolling() {
Expand Down

0 comments on commit e7ba489

Please sign in to comment.