ui-kit-ck-consultant 0.5.159 → 0.5.160

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 CHANGED
@@ -9842,6 +9842,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9842
9842
  this.getArrayDays();
9843
9843
  this.getArrayTime();
9844
9844
  this.setState({
9845
+ year: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('YYYY')) : this.tate.year,
9846
+ month: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('M')) : this.tate.month,
9845
9847
  activeDate: this.props.valueDate ? this.props.valueDate : this.state.activeDate,
9846
9848
  activeTime: this.props.valueTime ? this.props.valueTime : this.state.Time
9847
9849
  });
@@ -9850,6 +9852,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9850
9852
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
9851
9853
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
9852
9854
  this.setState({
9855
+ year: parseInt(moment(this.props.valueDate).format('YYYY')),
9856
+ month: parseInt(moment(this.props.valueDate).format('M')),
9853
9857
  activeDate: this.props.valueDate
9854
9858
  });
9855
9859
  }