promenu: fix values going below minimum

pull/3458/head
Rob Pilling 2024-06-16 17:52:10 +01:00
parent 1fa407b305
commit 7822445b6a
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ E.showMenu = (items?: Menu): MenuInstance => {
item.value += (-dir||1) * (item.step||1);
if (item.min && item.value < item.min)
if ("min" in item && item.value < item.min)
item.value = item.wrap ? item.max as number : item.min;
if ("max" in item && item.value > item.max)