From 7fc13ffb2acbb2010809cc1c8b6a05e9dafd2f46 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 6 Aug 2020 12:20:31 -0500 Subject: [PATCH] style(tabs): fix if statement (#21891) --- core/src/components/tab-button/tab-button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }