Skip to content

Commit

Permalink
Expand variables button scrolls to page header (#2733)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Aug 13, 2023
2 parents a3a313a + d927efb commit 1886322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/werkzeug/debug/shared/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ function handleConsoleSubmit(e, command, frameID) {
wrapperSpan.append(spanToWrap);
spanToWrap.hidden = true;

expansionButton.addEventListener("click", () => {
expansionButton.addEventListener("click", (event) => {
event.preventDefault();
spanToWrap.hidden = !spanToWrap.hidden;
expansionButton.classList.toggle("open");
return false;
Expand Down

0 comments on commit 1886322

Please sign in to comment.