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,
|
name = i,
|
||||||
type = OxTypeToQBType(v.type),
|
type = OxTypeToQBType(v.type),
|
||||||
isRequired = v.required,
|
isRequired = v.required,
|
||||||
placeholder = v.default,
|
default = v.default or "",
|
||||||
}
|
}
|
||||||
if v.type == "select" then
|
if v.type == "select" then
|
||||||
input.text = ""
|
input.text = ""
|
||||||
@@ -85,4 +85,4 @@ function OpenInput(title, data, isQBFormat, submitText)
|
|||||||
convertedData[tonumber(i)] = v
|
convertedData[tonumber(i)] = v
|
||||||
end
|
end
|
||||||
return convertedData
|
return convertedData
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user