Update _qb-input.lua
Fixed issue with default option not working correctly when creating qb-input menu
This commit is contained in:
1 file changed
+2
-2
@@ -36,7 +36,7 @@ function OxToQBInput(data)
|
||||
name = i,
|
||||
type = OxTypeToQBType(v.type),
|
||||
isRequired = v.required,
|
||||
placeholder = v.default,
|
||||
default = v.default or "",
|
||||
}
|
||||
if v.type == "select" then
|
||||
input.text = ""
|
||||
@@ -85,4 +85,4 @@ function OpenInput(title, data, isQBFormat, submitText)
|
||||
convertedData[tonumber(i)] = v
|
||||
end
|
||||
return convertedData
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user