forked from M3-Academy/m3-academy-template-checkout
fix: Resolve erro no header.js que o active não acompanhava a página
This commit is contained in:
parent
849c7c249f
commit
c9fdcd6e41
@ -193,22 +193,22 @@ export default class Header {
|
|||||||
"progress-bar-circle-1"
|
"progress-bar-circle-1"
|
||||||
].classList.remove("active");
|
].classList.remove("active");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
|
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
|
||||||
|
li.children[0].children[0].children[
|
||||||
|
"progress-bar-circle-2"
|
||||||
|
].classList.add("active");
|
||||||
|
}
|
||||||
|
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
|
||||||
|
if (
|
||||||
li.children[0].children[0].children[
|
li.children[0].children[0].children[
|
||||||
"progress-bar-circle-2"
|
"progress-bar-circle-3"
|
||||||
].classList.add("active");
|
].classList.contains("active")
|
||||||
}
|
) {
|
||||||
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
|
li.children[0].children[0].children[
|
||||||
if (
|
"progress-bar-circle-3"
|
||||||
li.children[0].children[0].children[
|
].classList.remove("active");
|
||||||
"progress-bar-circle-3"
|
|
||||||
].classList.contains("active")
|
|
||||||
) {
|
|
||||||
li.children[0].children[0].children[
|
|
||||||
"progress-bar-circle-3"
|
|
||||||
].classList.remove("active");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (window.location.hash == "#/payment") {
|
} else if (window.location.hash == "#/payment") {
|
||||||
|
Loading…
Reference in New Issue
Block a user