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.
@@ -9853,23 +9853,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9853
9853
  };
9854
9854
 
9855
9855
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
9856
- if (prevProps.show !== this.props.show) {
9857
- this.getArrayDays();
9858
- this.getArrayTime();
9859
- }
9860
-
9861
9856
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
9862
9857
  this.setState({
9863
9858
  year: parseInt(moment(this.props.valueDate).format('YYYY')),
9864
9859
  month: parseInt(moment(this.props.valueDate).format('M')),
9865
9860
  activeDate: this.props.valueDate
9866
- });
9861
+ }, this.getArrayDays);
9862
+ }
9863
+
9864
+ if (prevProps.show !== this.props.show) {
9865
+ this.getArrayDays();
9867
9866
  }
9868
9867
 
9869
9868
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
9870
9869
  this.setState({
9871
9870
  activeTime: this.props.valueTime
9872
- });
9871
+ }, this.getArrayTime);
9872
+ } else if (prevProps.show !== this.props.show) {
9873
+ this.getArrayTime();
9873
9874
  }
9874
9875
  };
9875
9876