site closes when clicking a link from the hamburger menu #2394
Labels
p1-important
Active priorities to deal within next sprints
🐛 type: bug
Something isn't working.
website: eng-doc
DEPRECATED JS engine for /doc
How to reproduce
Expected
The page opens correctly.
Actual
The site just closes.
This happens because we are calling the
window.close()
in theHamburgerMenuIcon
. I am not sure why it happens on a newly opened tab only (somewhere we are opening a new window based on that?).dvc.org/src/components/HamburgerMenu/index.tsx
Lines 43 to 49 in f08efbf
This also adds ugly warnings to the console:
Scripts may close only the windows that were opened by them.
The text was updated successfully, but these errors were encountered: