Skip to content

Commit 96a95f3

Browse files
committed
Merge branch 'dev' of https://github.com/inplayer-org/inplayer-ui into ch/add-classname-for-external-styles-in-switch-component
2 parents 442fbdf + f92d03a commit 96a95f3

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
66
### Change
77

88
- 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+
914
# [2.5.2] - 22-01-2021
1015

1116
### Change

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@inplayer-org/inplayer-ui",
33
"sideEffects": false,
4-
"version": "2.5.2",
4+
"version": "2.5.3",
55
"author": "InPlayer",
66
"description": "InPlayer React UI Components",
77
"main": "dist/inplayer-ui.cjs.js",

src/components/DayPicker/DayPicker.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const DayPicker = ({
8080
onFocusChange={onFocusChange}
8181
renderMonthElement={renderMonthElement}
8282
focused={focused}
83-
date={typeof date === 'string' ? moment(date) : date}
83+
date={date ? moment(date) : null}
8484
numberOfMonths={numberOfMonths}
8585
disabled={disabled}
8686
placeholder={placeholder}

0 commit comments

Comments
 (0)