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