Merge pull request #896 from torque-foxes/pulls/4.5/hide-fields

FIX Ensure initial visibility on fields is respected on hidden form steps
This commit is contained in:
Robbie Averill 2019-06-27 14:04:41 +12:00 committed by GitHub
commit ae9099f72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -782,7 +782,9 @@ JS
{$holder}.{$rule['opposite']}.trigger('{$rule['holder_event_opposite']}'); {$holder}.{$rule['opposite']}.trigger('{$rule['holder_event_opposite']}');
} }
}); });
$("{$target}").find('.hide').removeClass('hide'); if (!$("{$target}").hasClass('form-step')) {
$("{$target}").find('.hide').removeClass('hide');
}
EOS; EOS;
} }