Skip to content

Commit aaf38a1

Browse files
fix(interface): prevent view navigation when a popup is opened (#500)
1 parent c88e0de commit aaf38a1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public/components/navigation/navigation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ export class ViewNavigation {
3232
document.addEventListener("keydown", (event) => {
3333
const isWikiOpen = document.getElementById("documentation-root-element").classList.contains("slide-in");
3434
const isTargetPopup = event.target.id === "popup--background";
35+
const isPopupOpened = document.querySelector("#popup--background.show");
3536
const isTargetInput = event.target.tagName === "INPUT";
36-
if (isTargetPopup || isWikiOpen || isTargetInput) {
37+
if (isTargetPopup || isWikiOpen || isTargetInput || isPopupOpened) {
3738
return;
3839
}
3940

0 commit comments

Comments
 (0)