@skedulo/sked-ui 21.7.1 → 21.7.3

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -62109,11 +62109,14 @@ var SkedFormValidation = /*#__PURE__*/function (_React$PureComponent) {
62109
62109
  _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SkedFormValidation, [{
62110
62110
  key: "componentDidUpdate",
62111
62111
  value: function componentDidUpdate(prevProps) {
62112
- var initialValues = this.props.initialValues;
62112
+ var _this$props3 = this.props,
62113
+ initialValues = _this$props3.initialValues,
62114
+ options = _this$props3.options;
62113
62115
 
62114
62116
  if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(prevProps.initialValues, initialValues)) {
62115
62117
  // eslint-disable-next-line react/no-did-update-set-state
62116
62118
  this.setState({
62119
+ isFormReadonly: options.clickToEdit,
62117
62120
  initialValues: initialValues
62118
62121
  });
62119
62122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/sked-ui",
3
- "version": "21.7.1",
3
+ "version": "21.7.3",
4
4
  "license": "UNLICENSED",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",