Skip to content

Commit f9564f6

Browse files
committed
Fixes card expansion blocking collapsed action clicks
1 parent f5d73e0 commit f9564f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/webviews/apps/plus/home/components/branch-card.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,9 @@ export abstract class GlBranchCardBase extends GlElement {
496496
}
497497
}
498498

499-
private onFocus() {
500-
if (this.expanded) return;
499+
private onFocus(e: FocusEvent) {
500+
const actionElement = e.composedPath().some(el => (el as HTMLElement).matches?.('action-item') ?? false);
501+
if (actionElement || this.expanded) return;
501502
this.toggleExpanded(true);
502503
}
503504

0 commit comments

Comments
 (0)