style(tabs): fix if statement (#21891)

This commit is contained in:
Adam Bradley
2020-08-06 12:20:31 -05:00
committed by GitHub
parent 481d38df09
commit 7fc13ffb2a

View File

@ -82,7 +82,7 @@ export class TabButton implements ComponentInterface, AnchorInterface {
const dispatchedFrom = ev.target as HTMLElement;
const parent = this.el.parentElement as EventTarget;
if ((ev.composedPath && ev.composedPath().includes(parent)) || dispatchedFrom && dispatchedFrom.contains(this.el)) {
if ((ev.composedPath && ev.composedPath().includes(parent)) || (dispatchedFrom && dispatchedFrom.contains(this.el))) {
this.selected = this.tab === ev.detail.tab;
}
}