Skip to content

Commit

Permalink
Don't scroll to page header on expand button click
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq authored and davidism committed Aug 13, 2023
1 parent a3a313a commit d927efb
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 d927efb

Please sign in to comment.