mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +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)
|
||||
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