Skip to content

Commit

Permalink
Merge pull request #194597 from microsoft/benibenj/candidateFixEditor…
Browse files Browse the repository at this point in the history
…ToPinnedContainer

Fix: Dragging editor tab onto pinned tab bar container not working
  • Loading branch information
benibenj authored Oct 3, 2023
2 parents 4268e46 + 36bc3fb commit e7e0370
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ export class MultiEditorTabsControl extends EditorTabsControl {
tabsContainer.classList.remove('scroll');

if (e.target === tabsContainer) {
this.onDrop(e, this.groupView.count, tabsContainer);
const isGroupTransfer = this.groupTransfer.hasData(DraggedEditorGroupIdentifier.prototype);
this.onDrop(e, isGroupTransfer ? this.groupView.count : this.tabsModel.count, tabsContainer);
}
}
}));
Expand Down

0 comments on commit e7e0370

Please sign in to comment.