mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-16 17:48:33 +00:00
refactor(client/interface): nui focus consistency
This commit is contained in:
1 parent
9413f9dae8
commit
c4b87a0d91
4 files changed
+19
-15
No files matched your search
@@ -15,9 +15,8 @@ function lib.alertDialog(data)
|
||||
if alert then return end
|
||||
|
||||
alert = promise.new()
|
||||
|
||||
lib.setNuiFocus(false)
|
||||
SetNuiFocus(true, true)
|
||||
SetNuiFocusKeepInput(false)
|
||||
SendNUIMessage({
|
||||
action = 'sendAlert',
|
||||
data = data
|
||||
@@ -33,8 +32,8 @@ function lib.closeAlertDialog()
|
||||
SendNUIMessage({
|
||||
action = 'closeAlertDialog'
|
||||
})
|
||||
alert:resolve(nil)
|
||||
|
||||
alert:resolve(nil)
|
||||
alert = nil
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user