mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-13 01:03:56 +00:00
fix(web/menu): focus on first menu item on load
This commit is contained in:
1 parent
196d400c56
commit
3b9c8c5534
1 file changed
+1
@@ -68,6 +68,7 @@ const ListMenu: React.FC = () => {
|
||||
if (!data.position) data.position = "top-left";
|
||||
setMenu(data);
|
||||
setVisible(true);
|
||||
listRefs.current[0]?.focus();
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user