diff options
author | Levi Lansing <helives@gmail.com> | 2017-09-27 23:20:55 -0400 |
---|---|---|
committer | Levi Lansing <helives@gmail.com> | 2017-09-27 23:20:55 -0400 |
commit | d18ecfb67877d8bdfc54e47a214d3afab52b7bda (patch) | |
tree | 96a851037af8cc5c220ba4f3ba37a9b9cbc5b1b6 /examples | |
parent | 35d5ed7815f4707c79565a45261ffadc21d604be (diff) | |
download | time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.tar.gz time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.tar.zst time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.zip |
add focusOnOpen option (#61)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/open.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/open.js b/examples/open.js index 8e4f5de..12d8a8d 100644 --- a/examples/open.js +++ b/examples/open.js | |||
@@ -22,7 +22,12 @@ class App extends React.Component { | |||
22 | return ( | 22 | return ( |
23 | <div> | 23 | <div> |
24 | <button onClick={this.toggleOpen}>Toggle open</button> | 24 | <button onClick={this.toggleOpen}>Toggle open</button> |
25 | <TimePicker open={this.state.open} onOpen={this.setOpen} onClose={this.setOpen} /> | 25 | <TimePicker |
26 | open={this.state.open} | ||
27 | onOpen={this.setOpen} | ||
28 | onClose={this.setOpen} | ||
29 | focusOnOpen | ||
30 | /> | ||
26 | </div> | 31 | </div> |
27 | ); | 32 | ); |
28 | } | 33 | } |