@inseefr/lunatic 0.4.30-v2 → 0.4.31-v2

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.
@@ -98,8 +98,6 @@
98
98
  box-shadow: 0 2px 2px grey;
99
99
  border-radius: 4px;
100
100
  }
101
- &:focus {
102
- }
103
101
  .lunatic-combo-box-option {
104
102
  text-overflow: ellipsis;
105
103
  white-space: nowrap;
@@ -58,10 +58,9 @@
58
58
  // }
59
59
  }
60
60
 
61
- // .lunatic-radio-group-option {
62
- // display: flex;
63
- // align-items: center;
64
- // }
61
+ .lunatic-radio-group-option {
62
+ align-items: center;
63
+ }
65
64
  .lunatic-input-radio {
66
65
  display: flex;
67
66
  }
@@ -25,9 +25,12 @@ function validateComponentsForModal(state, components) {
25
25
 
26
26
  if (Array.isArray(controls)) {
27
27
  var componentErrors = (0, _validationUtils.resolveComponentControls)(state, controls);
28
- var shallowIteration = pager.shallowIteration;
29
- var idC = shallowIteration !== undefined ? "".concat(id, "-").concat(shallowIteration) : id;
30
- return _objectSpread(_objectSpread({}, errors), {}, _defineProperty({}, idC, componentErrors));
28
+
29
+ if (componentErrors.length) {
30
+ var shallowIteration = pager.shallowIteration;
31
+ var idC = shallowIteration !== undefined ? "".concat(id, "-").concat(shallowIteration) : id;
32
+ return _objectSpread(_objectSpread({}, errors), {}, _defineProperty({}, idC, componentErrors));
33
+ }
31
34
  } //Thanks to init which split basic Loops, we only go into unPaginatedLoops
32
35
 
33
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "0.4.30-v2",
3
+ "version": "0.4.31-v2",
4
4
  "workersVersion": "0.2.4-experimental",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {