fix(tabs): stop fallback outside locked window

This commit is contained in:
QLHazyCoder
2026-05-12 15:35:43 +08:00
parent 7a5b7a26cf
commit 8b9adb9085
6 changed files with 142 additions and 12 deletions
+1 -1
View File
@@ -214,7 +214,7 @@
if (value === null || value === undefined || value === '') {
return null;
}
const numeric = Math.floor(Number(value));
const numeric = Number(value);
return Number.isInteger(numeric) && numeric >= 0 ? numeric : null;
}