Skip to content

Commit 27fb270

Browse files
committed
add numeric type support for "dateTime" attribute
1 parent ac8d08e commit 27fb270

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DateTimeField.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export default class DateTimeField extends Component {
3030
}
3131

3232
static propTypes = {
33-
dateTime: PropTypes.string,
33+
dateTime: PropTypes.oneOfType([
34+
PropTypes.string,
35+
PropTypes.number
36+
]),
3437
onChange: PropTypes.func,
3538
format: PropTypes.string,
3639
inputProps: PropTypes.object,

0 commit comments

Comments
 (0)