bee-datepicker
Advanced tools
Comparing version 2.3.29 to 2.3.30
@@ -271,7 +271,10 @@ "use strict"; | ||
if (typeof format == 'string') { | ||
return value.format(format); | ||
} else { | ||
return value.format(format[0]); | ||
if (value.format) { | ||
if (typeof format == 'string') { | ||
return value.format(format); | ||
} else { | ||
return value.format(format[0]); | ||
} | ||
} | ||
return value; | ||
}; | ||
@@ -278,0 +281,0 @@ |
@@ -0,1 +1,10 @@ | ||
## [2.3.30](https://github.com/tinper-bee/bee-datepicker/compare/v2.3.29...v2.3.30) (2020-08-20) | ||
### Bug Fixes | ||
* value.format is not a function ([abc85c7](https://github.com/tinper-bee/bee-datepicker/commit/abc85c7a96bdb87c7dfcbe263d25d84f91b7437c)) | ||
## [2.3.29](https://github.com/tinper-bee/bee-datepicker/compare/v2.3.28...v2.3.29) (2020-08-18) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "bee-datepicker", | ||
"version": "2.3.29", | ||
"version": "2.3.30", | ||
"description": "DatePicker ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -75,7 +75,10 @@ /** | ||
let { format } = this.props; | ||
if(typeof format == 'string'){ | ||
return value.format(format) | ||
}else{ | ||
return value.format(format[0]) | ||
if(value.format){ | ||
if(typeof format == 'string'){ | ||
return value.format(format) | ||
}else{ | ||
return value.format(format[0]) | ||
} | ||
} | ||
return value | ||
} | ||
@@ -82,0 +85,0 @@ |
644859
16124