ui-kit-ck-consultant 0.5.152 → 0.5.156

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.
@@ -339,7 +339,7 @@ var FormTextarea = /*#__PURE__*/function (_React$Component) {
339
339
  }, this.props.title ? /*#__PURE__*/React.createElement("span", null, this.props.title, ' ', this.props.required ? /*#__PURE__*/React.createElement("span", {
340
340
  className: "red"
341
341
  }, "*") : '') : '', /*#__PURE__*/React.createElement("textarea", {
342
- onKeyDown: this.handleKeyDown,
342
+ onKeyDown: !this.props.noResize ? this.handleKeyDown : null,
343
343
  onBlur: this.props.onBlur,
344
344
  rows: this.props.rows,
345
345
  cols: this.props.cols,
@@ -3785,6 +3785,22 @@ var Switch = /*#__PURE__*/function (_React$Component) {
3785
3785
 
3786
3786
  var _proto = Switch.prototype;
3787
3787
 
3788
+ _proto.componentDidMount = function componentDidMount() {
3789
+ if (this.props.idxActive !== undefined) {
3790
+ this.setState({
3791
+ idxActive: this.props.idxActive
3792
+ });
3793
+ }
3794
+ };
3795
+
3796
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
3797
+ if (prevProps.idxActive !== undefined && prevProps.idxActive !== this.props.idxActive && this.props.idxActive !== this.state.prevProps) {
3798
+ this.setState({
3799
+ idxActive: this.props.idxActive
3800
+ });
3801
+ }
3802
+ };
3803
+
3788
3804
  _proto.render = function render() {
3789
3805
  var _this2 = this;
3790
3806