Skip to content

Commit 1886322

Browse files
authored
Expand variables button scrolls to page header (#2733)
2 parents a3a313a + d927efb commit 1886322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/werkzeug/debug/shared/debugger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ function handleConsoleSubmit(e, command, frameID) {
305305
wrapperSpan.append(spanToWrap);
306306
spanToWrap.hidden = true;
307307

308-
expansionButton.addEventListener("click", () => {
308+
expansionButton.addEventListener("click", (event) => {
309+
event.preventDefault();
309310
spanToWrap.hidden = !spanToWrap.hidden;
310311
expansionButton.classList.toggle("open");
311312
return false;

0 commit comments

Comments
 (0)