🐛 back to the zoom in block

This commit is contained in:
Vanessa 2023-05-11 20:00:21 +08:00
parent 9383c943b3
commit a974bbdece
5 changed files with 46 additions and 49 deletions

View file

@ -409,6 +409,10 @@ export class Wnd {
public switchTab(target: HTMLElement, pushBack = false, update = true) {
setPanelFocus(this.headersElement.parentElement.parentElement);
// https://github.com/siyuan-note/siyuan/issues/8233
if (target.classList.contains("item--focus")) {
return;
}
let currentTab: Tab;
this.children.forEach((item) => {
if (target === item.headElement) {