diff --git a/core/src/components/tab-button/tab-button.tsx b/core/src/components/tab-button/tab-button.tsx index c51b607926..8cd1ae4604 100644 --- a/core/src/components/tab-button/tab-button.tsx +++ b/core/src/components/tab-button/tab-button.tsx @@ -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; } }