gh-14057: Fix unclosable tab when dropping files into the browser area (gh-14753)

This commit is contained in:
Brandon Quon
2026-07-28 01:25:26 -07:00
committed by GitHub
parent e474f1df3a
commit 92addf307d

View File

@@ -236,7 +236,7 @@ index c42b1a1a8df6b38886c17f71ea88e5aaa7eebc80..c741404ed973ee3ac246fe246c0f645e
}
- if (replace) {
+ if (replace && !(!targetTab && this.selectedTab?.hasAttribute('zen-empty-tab'))) {
+ if (replace && !((targetTab || this.selectedTab)?.hasAttribute('zen-empty-tab'))) {
if (this.isTabGroupLabel(targetTab)) {
throw new Error(
"Replacing a tab group label with a tab is not supported"