Skip to content

Commit c7c0268

Browse files
cal-smithjdcai
andauthored
Update src/content-switcher/content-switcher-option.directive.ts
Co-Authored-By: jdcai <[email protected]>
1 parent 49b4204 commit c7c0268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content-switcher/content-switcher-option.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class ContentSwitcherOption {
5858

5959
@HostListener("blur", ["$event"])
6060
onBlur(event) {
61-
if (event.relatedTarget && event.relatedTarget.className === "bx--content-switcher-btn") {
61+
if (event.relatedTarget && event.relatedTarget.classList.contains("bx--content-switcher-btn")) {
6262
this.active = false;
6363
}
6464
}

0 commit comments

Comments
 (0)