mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
fix unnecessary scroll to parent when opening new tab
This commit is contained in:
@@ -431,11 +431,13 @@ export default class TabRowWidget extends BasicWidget {
|
||||
removeTab(tabId) {
|
||||
const tabEl = this.getTabById(tabId)[0];
|
||||
|
||||
tabEl.parentNode.removeChild(tabEl);
|
||||
this.cleanUpPreviouslyDraggedTabs();
|
||||
this.layoutTabs();
|
||||
this.setupDraggabilly();
|
||||
this.setVisibility();
|
||||
if (tabEl) {
|
||||
tabEl.parentNode.removeChild(tabEl);
|
||||
this.cleanUpPreviouslyDraggedTabs();
|
||||
this.layoutTabs();
|
||||
this.setupDraggabilly();
|
||||
this.setVisibility();
|
||||
}
|
||||
}
|
||||
|
||||
getTabIdsInOrder() {
|
||||
|
||||
Reference in New Issue
Block a user