feat: dot navigation code cleanup

This commit is contained in:
Sebastian Pravda 2022-12-25 12:30:11 +01:00
parent 23c577fd52
commit abba57c10c
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -534,18 +534,7 @@
const progress = pagesFilled.slice(0, i).every((item) => item === true);
if (progress) {
if (i > pageIndex) {
// if next page is clicked, validate current page
console.log($errors);
if (isPageInvalid(pageIndex)) return;
// pagesFilled[i] = true;
console.log(pagesFilled);
pageIndex = i;
} else {
pageIndex = i;
}
// @ts-ignore
// errors.set(formInitialValues);
pageIndex = i;
}
}}
class="dot"