Skip to content

Commit a3ef277

Browse files
committedApr 8, 2023
fix(travel): bypass hidden trap button
1 parent 6270a5b commit a3ef277

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/views/Travel/utils/getStepButton.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export function getStepButton() {
44

55
try {
66
buttons = Array.from(document.querySelectorAll(".relative.mt-2.rounded-lg")[1].querySelectorAll("button"))
7-
button = buttons.find((e) => e.tabIndex >= 0 && e.innerText.toLowerCase().includes("step")) ?? null
7+
button = buttons.find((e) => e.tabIndex >= 0 && !e.getAttribute('x-on:click')?.includes('saveData') && e.innerText.toLowerCase().includes("step")) ?? null
8+
console.log(button)
89
} catch (_) {
910
return null
1011
}

0 commit comments

Comments
 (0)
Please sign in to comment.