Skip to content

Commit

Permalink
feat: support for cosmoz-tab-cards nested in other elements
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinecula committed Sep 8, 2022
1 parent 5a44484 commit 612ec1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]'))
),
[]
),
Expand Down

0 comments on commit 612ec1f

Please sign in to comment.