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.
- package/dist/index.css +1 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
@@ -342,7 +342,7 @@ var FormTextarea = /*#__PURE__*/function (_React$Component) {
|
|
342
342
|
}, this.props.title ? /*#__PURE__*/React__default.createElement("span", null, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
|
343
343
|
className: "red"
|
344
344
|
}, "*") : '') : '', /*#__PURE__*/React__default.createElement("textarea", {
|
345
|
-
onKeyDown: this.handleKeyDown,
|
345
|
+
onKeyDown: !this.props.noResize ? this.handleKeyDown : null,
|
346
346
|
onBlur: this.props.onBlur,
|
347
347
|
rows: this.props.rows,
|
348
348
|
cols: this.props.cols,
|
@@ -3788,6 +3788,22 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
3788
3788
|
|
3789
3789
|
var _proto = Switch.prototype;
|
3790
3790
|
|
3791
|
+
_proto.componentDidMount = function componentDidMount() {
|
3792
|
+
if (this.props.idxActive !== undefined) {
|
3793
|
+
this.setState({
|
3794
|
+
idxActive: this.props.idxActive
|
3795
|
+
});
|
3796
|
+
}
|
3797
|
+
};
|
3798
|
+
|
3799
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3800
|
+
if (prevProps.idxActive !== undefined && prevProps.idxActive !== this.props.idxActive && this.props.idxActive !== this.state.prevProps) {
|
3801
|
+
this.setState({
|
3802
|
+
idxActive: this.props.idxActive
|
3803
|
+
});
|
3804
|
+
}
|
3805
|
+
};
|
3806
|
+
|
3791
3807
|
_proto.render = function render() {
|
3792
3808
|
var _this2 = this;
|
3793
3809
|
|