mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
fix(client/radial): hide radial before running onSelect
potentially fixes focus issues when opening another UI element in onSelect
This commit is contained in:
@@ -111,10 +111,11 @@ RegisterNUICallback('radialClick', function(index, cb)
|
|||||||
cb(1)
|
cb(1)
|
||||||
local item = not currentRadial and menuItems[index + 1] or currentRadial.items[index + 1]
|
local item = not currentRadial and menuItems[index + 1] or currentRadial.items[index + 1]
|
||||||
|
|
||||||
|
lib.hideRadial()
|
||||||
|
|
||||||
if item.onSelect then item.onSelect() end
|
if item.onSelect then item.onSelect() end
|
||||||
if item.menu then return showRadial(item.menu) end
|
if item.menu then return showRadial(item.menu) end
|
||||||
|
|
||||||
lib.hideRadial()
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterNUICallback('radialBack', function(_, cb)
|
RegisterNUICallback('radialBack', function(_, cb)
|
||||||
|
|||||||
Reference in New Issue
Block a user