Skip to content

Commit

Permalink
removed click as default
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayadav09 committed Feb 15, 2024
1 parent 794af63 commit a2b4924
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OnboardingSPA/components/TabPanelHover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const TabButton = ( {
);
};

/* the default will be mouseover and will be click event if triggerEvent="click" is specifically passed */
const useEventTrigger = ( triggerEvent, handleEvent, tabName ) => {
const eventHandler = useCallback(
() => handleEvent( tabName ),
Expand All @@ -66,7 +67,7 @@ export default function TabPanelHover( {
notActiveClass = 'is-not-active',
callback,
onSelect = noop,
triggerEvent = 'click',
triggerEvent,
} ) {
const instanceId = useInstanceId( TabPanelHover, 'tab-panel' );
const [ selected, setSelected ] = useState( null );
Expand Down

0 comments on commit a2b4924

Please sign in to comment.