ui-kit-ck-consultant 0.5.166 → 0.5.167
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 +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -9856,23 +9856,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9856
9856
|
};
|
9857
9857
|
|
9858
9858
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9859
|
-
if (prevProps.show !== this.props.show) {
|
9860
|
-
this.getArrayDays();
|
9861
|
-
this.getArrayTime();
|
9862
|
-
}
|
9863
|
-
|
9864
9859
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9865
9860
|
this.setState({
|
9866
9861
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9867
9862
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9868
9863
|
activeDate: this.props.valueDate
|
9869
|
-
});
|
9864
|
+
}, this.getArrayDays);
|
9865
|
+
}
|
9866
|
+
|
9867
|
+
if (prevProps.show !== this.props.show) {
|
9868
|
+
this.getArrayDays();
|
9870
9869
|
}
|
9871
9870
|
|
9872
9871
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9873
9872
|
this.setState({
|
9874
9873
|
activeTime: this.props.valueTime
|
9875
|
-
});
|
9874
|
+
}, this.getArrayTime);
|
9875
|
+
} else if (prevProps.show !== this.props.show) {
|
9876
|
+
this.getArrayTime();
|
9876
9877
|
}
|
9877
9878
|
};
|
9878
9879
|
|