File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
6
6
### Change
7
7
8
8
- Add missing className for Switch component in order to externaly style it with styled-components
9
+
10
+ ### Fixes
11
+
12
+ - Daypicker moment type error
13
+
9
14
# [ 2.5.2] - 22-01-2021
10
15
11
16
### Change
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @inplayer-org/inplayer-ui" ,
3
3
"sideEffects" : false ,
4
- "version" : " 2.5.2 " ,
4
+ "version" : " 2.5.3 " ,
5
5
"author" : " InPlayer" ,
6
6
"description" : " InPlayer React UI Components" ,
7
7
"main" : " dist/inplayer-ui.cjs.js" ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ const DayPicker = ({
80
80
onFocusChange = { onFocusChange }
81
81
renderMonthElement = { renderMonthElement }
82
82
focused = { focused }
83
- date = { typeof date === 'string' ? moment ( date ) : date }
83
+ date = { date ? moment ( date ) : null }
84
84
numberOfMonths = { numberOfMonths }
85
85
disabled = { disabled }
86
86
placeholder = { placeholder }
You can’t perform that action at this time.
0 commit comments