@agilemotion/oui-react-js 1.8.21 → 1.8.24

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.
@@ -34,6 +34,10 @@ const BaseField = props => {
34
34
  const ref = _react.default.useRef(null);
35
35
  const valid = _react.default.useRef(false);
36
36
  _react.default.useEffect(() => {
37
+ initialValueBound.current = false;
38
+ bind();
39
+ }, [valueObject]);
40
+ function bind() {
37
41
  let boundValue = valueObject[valueProperty];
38
42
  if (boundValue && !initialValueBound.current) {
39
43
  initialValueBound.current = true;
@@ -51,6 +55,9 @@ const BaseField = props => {
51
55
  valueRef.current = boundValue;
52
56
  }
53
57
  }
58
+ }
59
+ _react.default.useEffect(() => {
60
+ bind();
54
61
  }, [valueObject[valueProperty]]);
55
62
 
56
63
  // Change the required value and re-validate field if necessary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilemotion/oui-react-js",
3
- "version": "1.8.21",
3
+ "version": "1.8.24",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -147,4 +147,4 @@
147
147
  "url": "https://gitlab.com/agilemotion/oui-react-js/issues"
148
148
  },
149
149
  "homepage": "https://gitlab.com/agilemotion/oui-react-js#readme"
150
- }
150
+ }