mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-11 01:39:37 +00:00
Do not scroll up the sidebar when clicking on a treeview
This commit is contained in:
parent
78b1d41cf8
commit
83608fffcf
2 changed files with 7 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue