Skip to content

Commit

Permalink
fixed issue with the navigation menu screen scroll (#818)
Browse files Browse the repository at this point in the history
Co-authored-by: ost-ptk <[email protected]>
  • Loading branch information
ost-ptk and ost-ptk authored Oct 4, 2023
1 parent 3172029 commit 0c69c55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/apps/popup/pages/navigation-menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useMemo } from 'react';
import React, { useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';
Expand Down Expand Up @@ -76,6 +76,12 @@ export function NavigationMenuPageContent() {
const { openWindow } = useWindowManager();
const { closeNavigationMenu } = useNavigationMenu();

useEffect(() => {
const container = document.querySelector('#ms-container');

container?.scrollTo(0, 0);
}, []);

const menuGroups: MenuGroup[] = useMemo(
() => [
{
Expand Down

0 comments on commit 0c69c55

Please sign in to comment.