Tab conditionals not taking priority over field conditionals
When a tab is hidden by a tab conditional it should not be able to be restored due to a fields conditional that is on that tab. As is if Field A hides Tab A and Field B shows Field C on Tab A it causes the tab display to restore. Simply add a new class for when a tab display is disabled (tabDisplayDisabled) in addition to the displayDisabled class that is ONLY added when the tab is hidden by a tab conditional. This way when a field conditional trys to show/hide the entire tab it only adds displayDisable and checks that it does not have tabDisplayDisabled before attempting to add/remove this class.
Updated by krileon over 9 years ago
The below unique classes are now added. They are only added by the functions that directly show/hide them. Indirect show/hide will not add them so they are guaranteed to be added by the functions that cause the show/hide.