Fix tab drag logic to allow dragging the last opened tab

This commit is contained in:
Mr. M 2025-04-13 10:20:10 +02:00
parent 9ee4212060
commit ec1c861b13

View file

@ -189,7 +189,8 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
!this._lastOpenedTab ||
(this._lastOpenedTab &&
this._lastOpenedTab.getAttribute('zen-workspace-id') !== draggedTab.getAttribute('zen-workspace-id') &&
!this._lastOpenedTab.hasAttribute('zen-essential'))
!this._lastOpenedTab.hasAttribute('zen-essential')) ||
draggedTab === this._lastOpenedTab
) {
return;
}