Fix TypeError: can't access property "pinned", group is undefined (#9116)

This commit is contained in:
octaviusz
2025-06-21 19:36:33 +03:00
committed by GitHub
parent 3a317daa87
commit 48f036d6a0

View File

@@ -17,7 +17,7 @@
}
#onTabGrouped(event) {
const tab = event.target;
const tab = event.detail;
const group = tab.group;
group.pinned = tab.pinned;
@@ -30,8 +30,8 @@
}
#onTabUngrouped(event) {
const tab = event.target;
const group = event.detail;
const tab = event.detail;
const group = event.target;
if (group.hasAttribute('split-view-group') && tab.hasAttribute('had-zen-pinned-changed')) {
tab.setAttribute('zen-pinned-changed', true);
tab.removeAttribute('had-zen-pinned-changed');