Skip to content

Commit 560ab0f

Browse files
committed
devtools: re-land f7a3f67, fix #59
1 parent 3ae2d94 commit 560ab0f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/unpacked/devtools/front_end/console/ConsoleView.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,10 @@ Console.ConsoleView = class extends UI.VBox {
13111311
this._prompt.moveCaretToEndOfPrompt();
13121312
// Prevent scrolling when expanding objects in console, but focus the prompt anyway.
13131313
var oldScrollTop = this._viewport.element.scrollTop;
1314-
this.focus();
1314+
const isCustomExpandIcon = targetElement.classList.contains("custom-expand-icon");
1315+
if (!isCustomExpandIcon) { // see https://github.com/binaryage/dirac/issues/59
1316+
this.focus();
1317+
}
13151318
this._viewport.element.scrollTop = oldScrollTop;
13161319
}
13171320
// TODO: fix this.

0 commit comments

Comments
 (0)