Skip to content

Commit 52191d9

Browse files
committed
Adds the closeOnTab prop.
1 parent 9012e81 commit 52191d9

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Changelog
22
=========
3+
## 2.4.0
4+
* Added ES linting.
5+
* Added `closeOnTab` property.
6+
37
## 2.3.3
48
* Updated readme.
59
* Fixed short months for not English locales.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ API
6767
| **renderYear** | function | DOM.td( year ) | Customize the way that the years are shown in the year picker. The accepted function has the `selectedDate`, the current date and the default calculated `props` for the cell, the `year` to be shown, and must return a React component. See [appearance customization](#appearance-customization) |
6868
| **strictParsing** | boolean | false | Whether to use moment's [strict parsing](http://momentjs.com/docs/#/parsing/string-format/) when parsing input.
6969
| **closeOnSelect** | boolean | false | When `true`, once the day has been selected, the react-datetime will be automatically closed.
70+
| **closeOnTab** | boolean | true | When `true` and the input is focused, pressing the `tab` key will close the picker.
7071

7172
## i18n
7273
Different language and date formats are supported by react-datetime. React uses [moment.js](http://momentjs.com/) to format the dates, and the easiest way of changing the language of the calendar is [changing the moment.js locale](http://momentjs.com/docs/#/i18n/changing-locale/).

0 commit comments

Comments
 (0)