1 Reply Latest reply on Jul 17, 2008 12:10 PM by EDendramis

    Stop Change Event in TabNavigator

    Level 1
      How can I stop the change event from happening on a TabNavigator?

      I have a TabNavigator with two tabs. I want to be able to detect when the user clicks on the non-active tab then check certain components on the active tab and then depending on the components either let the user to go to the non-active tab or not.

      I have tried using the change event but I can not stop the tab from actually changing. Is there another event which gets fired before the change event that I can use?

      I have tried using:

      event.preventDefault();
      event.stopImmediatePropagation();
      event.stopPropagation();

      But none of them stop the tab change.