mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
feat: dot navigation code cleanup
This commit is contained in:
parent
23c577fd52
commit
abba57c10c
1 changed files with 1 additions and 12 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue