Skip to content

Commit

Permalink
Fix stuck menu when retargeting without movement
Browse files Browse the repository at this point in the history
  • Loading branch information
tiliv committed Apr 30, 2024
1 parent 55e7934 commit 5b808fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DisplayMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function DisplayMenu({
const { items=null, text=null } = menus[menus.length - 1] || {};
setOptions(items);
setText(text);
}, [menus.length, width, _viewportHeight]);
}, [menus.length, menus[0], width, _viewportHeight]);

// Set optionsViewport to current menu page
useEffect(() => {
Expand Down

0 comments on commit 5b808fb

Please sign in to comment.