@smartbit4all/ng-client 3.3.147 → 3.3.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4252,7 +4252,8 @@ class SmartFormService {
4252
4252
  let tobeMandatory = false;
4253
4253
  if (constraint.mandatory === undefined) {
4254
4254
  // not specified on server, use client state
4255
- tobeMandatory = wasMandatory;
4255
+ // if widget is not visible, client should default to not mandatory
4256
+ tobeMandatory = widget.isVisible && wasMandatory;
4256
4257
  }
4257
4258
  else {
4258
4259
  tobeMandatory = constraint.mandatory;