Skip to content

Commit

Permalink
auth console.log 2
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Dec 3, 2024
1 parent f6e38d8 commit d859789
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions blocks/header/renderAuthDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,16 @@ export function renderAuthDropdown(navTools) {
state ?? !authDropDownPanel.classList.contains("nav-tools-panel--show");

console.log("authDropDownPanel", authDropDownPanel);
console.log("show", show);

authDropDownPanel.classList.toggle("nav-tools-panel--show", show);

authDropDownPanel.setAttribute("role", "dialog");
authDropDownPanel.setAttribute("aria-hidden", "false");
authDropDownPanel.setAttribute("aria-labelledby", "modal-title");
authDropDownPanel.setAttribute("aria-describedby", "modal-description");

authDropDownPanel.querySelector('input[name="email"]').focus();
}

loginButton.addEventListener("click", () => toggleDropDownAuthMenu());
Expand Down

0 comments on commit d859789

Please sign in to comment.