mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-13 20:30:30 +00:00
gh-14545: Correctly handle dnd moving a tab to an empty space (gh-14562)
This commit is contained in:
@@ -1336,7 +1336,8 @@
|
||||
// Essentials should be properly handled by ::animateVerticalPinnedGridDragOver
|
||||
if (!dropElement || dropElement.hasAttribute("zen-essential")) {
|
||||
this.clearDragOverVisuals();
|
||||
return null;
|
||||
// If dropElement is null or essential, dropElement should be the empty tab
|
||||
return [dropBefore, gZenWorkspaces._emptyTab];
|
||||
}
|
||||
if (dropElement.hasAttribute("zen-empty-tab") && dropElement.group) {
|
||||
let secondTab = dropElement.group.tabs[1];
|
||||
|
||||
Reference in New Issue
Block a user