-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi there, is there a way to prevent the tab change if there are conditions not met.
I.e. I'm trying to use the onTabBeforeChange event to check parameters and prevent the change, but nothing I try appears to work.
const onTabBeforeChange = (index, oldIndex) => {
switch (currentTabIndex)
{
case 0:
if (selectedUtility.value == undefined && selectedBuilding.value == undefined)
//Prevent the change
break;
}
};
Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels