InputContainer: consistent input type in onInput() (#12012)

This commit is contained in:
hius07
2024-06-15 09:54:17 +03:00
committed by GitHub
parent 57c6fb6355
commit ded709e3a1
8 changed files with 22 additions and 32 deletions

View File

@@ -242,11 +242,10 @@ function SortWidget:init()
text = "",
hold_input = {
title = _("Enter page number"),
input_type = "number",
hint_func = function()
return "(" .. "1 - " .. self.pages .. ")"
return string.format("(1 - %s)", self.pages)
end,
type = "number",
deny_blank_input = true,
callback = function(input)
local page = tonumber(input)
if page and page >= 1 and page <= self.pages then