mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(web): clear nui focus from input before resolving the promise
This commit is contained in:
@@ -27,7 +27,7 @@ end
|
||||
RegisterNUICallback('inputData', function(data, cb)
|
||||
cb(1)
|
||||
if not input then return end
|
||||
if not data then input:resolve() else input:resolve(data) end
|
||||
SetNuiFocus(false, false)
|
||||
if not data then input:resolve() else input:resolve(data) end
|
||||
input = nil
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user