Do not scroll up the sidebar when clicking on a treeview

This commit is contained in:
Jan Böhmer 2026-03-06 22:28:42 +01:00
parent 78b1d41cf8
commit 83608fffcf
2 changed files with 7 additions and 2 deletions

View file

@ -40,6 +40,8 @@ export default class extends TreeController {
//Check if we have a saved mode
const stored_mode = localStorage.getItem(this._storage_key);
this._frame = this.element.dataset.frame || "content"; //By default, navigate in the content frame, if a frame is defined
//Use stored mode if possible, otherwise use default
if(stored_mode) {
try {