ui-kit-ck-consultant 0.5.162 → 0.5.163
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.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -9850,18 +9850,23 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9850
9850
|
};
|
9851
9851
|
|
9852
9852
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9853
|
+
if (prevProps.show !== this.props.show) {
|
9854
|
+
this.getArrayDays();
|
9855
|
+
this.getArrayTime();
|
9856
|
+
}
|
9857
|
+
|
9853
9858
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9854
9859
|
this.setState({
|
9855
9860
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9856
9861
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9857
9862
|
activeDate: this.props.valueDate
|
9858
|
-
}
|
9863
|
+
});
|
9859
9864
|
}
|
9860
9865
|
|
9861
9866
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9862
9867
|
this.setState({
|
9863
9868
|
activeTime: this.props.valueTime
|
9864
|
-
}
|
9869
|
+
});
|
9865
9870
|
}
|
9866
9871
|
};
|
9867
9872
|
|