fix(web): clear nui focus from input before resolving the promise

This commit is contained in:
Luke
2022-08-15 14:49:48 +02:00
parent 274f2542a8
commit 953673690c
2 changed files with 2 additions and 1 deletions

View File

@@ -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)