mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(web/menu): fix not being able to press enter on first button index
This commit is contained in:
@@ -84,7 +84,7 @@ const ListMenu: React.FC = () => {
|
||||
});
|
||||
break;
|
||||
case "Enter":
|
||||
if (!menu.items[selected].values) return;
|
||||
if (!menu.items[selected]) return;
|
||||
fetchNui(
|
||||
"confirmSelected",
|
||||
Array.isArray(menu.items[selected].values) ? [selected, indexStates[selected]] : selected
|
||||
|
||||
Reference in New Issue
Block a user