mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
refactor(client/interface): nui focus consistency
This commit is contained in:
@@ -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