checkbox default val and radio type checks for set_value
This commit is contained in:
@@ -126,7 +126,7 @@ local function radio_button(args)
|
||||
-- set the value
|
||||
---@param val integer new value
|
||||
function e.set_value(val)
|
||||
if val > 0 and val <= #args.options then
|
||||
if type(val) == "number" and val > 0 and val <= #args.options then
|
||||
e.value = val
|
||||
e.redraw()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user