Fixed registring the empty tab as last selected on split views

This commit is contained in:
mr. m
2025-03-03 08:47:10 +01:00
parent f1f80f3d57
commit e04cb679f9

View File

@@ -127,7 +127,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
*/
onTabSelect(event) {
const previousTab = event.detail.previousTab;
if (previousTab) {
if (previousTab && !previousTab.hasAttribute('zen-empty-tab')) {
this._lastOpenedTab = previousTab;
}
}