Skip to content

Commit dff1e80

Browse files
authored
Add support for handling date range (#6)
* Remove unused class name * Add support for handling date range * Use startOf('day') and endOf('day') to determine correct timestamp for minDate and maxDate * v1.0.0-alpha.4 * Update DateTimeRangePicker examples * Check date with isValidDate() before creating a moment instance * Drop support for Node.js v4 and v5
1 parent dc589f4 commit dff1e80

File tree

14 files changed

+14704
-12236
lines changed

14 files changed

+14704
-12236
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ os:
88
- linux
99

1010
node_js:
11+
- '8'
1112
- '6'
12-
- '5'
13-
- '4'
1413

1514
before_install:
1615
- npm install -g npm

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ Name | Type | Default | Description
173173
:--- | :--- | :------ | :----------
174174
value | object or string | null |
175175
defaultValue | object or string | null |
176+
minDate | object or string | null | The minimum date. When set to null, there is no minimum.
177+
maxDate | object or string | null | The maximum date. When set to null, there is no maximum.
176178
onChange | function(value) | | Called when the value changes.
177179

178180
#### TimeInput

dist/react-datepicker.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-datepicker.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)