From 612ec1fa8d0e1fbb4d72d12b7fd78b646d8cc0a3 Mon Sep 17 00:00:00 2001 From: Cristian Necula Date: Thu, 8 Sep 2022 15:43:11 -0500 Subject: [PATCH] feat: support for cosmoz-tab-cards nested in other elements --- src/use-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use-tab.js b/src/use-tab.js index 76f70c7..e138639 100644 --- a/src/use-tab.js +++ b/src/use-tab.js @@ -25,7 +25,7 @@ const useTab = (host) => { ({ target }) => host.toggleAttribute( 'has-cards', - target.assignedElements().some((el) => el.matches('cosmoz-tab-card')) + target.assignedElements().some((el) => el.matches('cosmoz-tab-card, [has-cards]')) ), [] ),