@seafile/seafile-calendar 0.0.31-Apph0.29 → 0.0.31-Apph0.31

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.
@@ -614,7 +614,6 @@ function getDatePart(str) {
614
614
 
615
615
  function initializeStr(str, format) {
616
616
  var inputStr = str;
617
- if (!inputStr) return '';
618
617
  var inputStrLength = inputStr.length;
619
618
  var time = getCurrentTime();
620
619
  var hasSpecial = hasSpecialChar(inputStr);
@@ -7404,7 +7403,7 @@ var _initialiseProps = function _initialiseProps() {
7404
7403
  selectedValue = _props.selectedValue,
7405
7404
  defaultValue = _props.defaultValue;
7406
7405
 
7407
- console.log('calendarStr', calendarStr);
7406
+ console.log('calendarStr', !calendarStr);
7408
7407
  var parsed = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()(calendarStr, format[0]);
7409
7408
  var value = _this2.props.value.clone();
7410
7409
  console.log('value', value);
@@ -7417,7 +7416,7 @@ var _initialiseProps = function _initialiseProps() {
7417
7416
 
7418
7417
  if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
7419
7418
  _this2.setState({ str: str });
7420
- var changeVal = calendarStr === '' ? defaultValue : value;
7419
+ var changeVal = !calendarStr ? defaultValue : value;
7421
7420
  console.log('changeVal', changeVal);
7422
7421
  onChange(changeVal);
7423
7422
  }