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.modern.js
CHANGED
@@ -9847,18 +9847,23 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9847
9847
|
};
|
9848
9848
|
|
9849
9849
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9850
|
+
if (prevProps.show !== this.props.show) {
|
9851
|
+
this.getArrayDays();
|
9852
|
+
this.getArrayTime();
|
9853
|
+
}
|
9854
|
+
|
9850
9855
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9851
9856
|
this.setState({
|
9852
9857
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9853
9858
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9854
9859
|
activeDate: this.props.valueDate
|
9855
|
-
}
|
9860
|
+
});
|
9856
9861
|
}
|
9857
9862
|
|
9858
9863
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9859
9864
|
this.setState({
|
9860
9865
|
activeTime: this.props.valueTime
|
9861
|
-
}
|
9866
|
+
});
|
9862
9867
|
}
|
9863
9868
|
};
|
9864
9869
|
|