Skip to content

Commit

Permalink
fix: restore isSelected cosmoz-tab notification
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Sep 24, 2020
1 parent d65d839 commit 3905cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/use-tab.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
useEffect, useCallback
} from 'haunted';
import { useNotifyProperty } from '@neovici/cosmoz-utils/lib/hooks/use-notify-property';

const useTab = host => {
useEffect(() => {
Expand All @@ -10,6 +11,8 @@ const useTab = host => {
}));
}, [host.hidden, host.disabled, host.heading, host.badge, host.iconStyle]);

useNotifyProperty('isSelected', host.isSelected);

return {
onSlot: useCallback(({ target }) => host.toggleAttribute(
'has-cards',
Expand Down

0 comments on commit 3905cd7

Please sign in to comment.