aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/open.js
diff options
context:
space:
mode:
authorLevi Lansing <helives@gmail.com>2017-09-27 23:20:55 -0400
committerLevi Lansing <helives@gmail.com>2017-09-27 23:20:55 -0400
commitd18ecfb67877d8bdfc54e47a214d3afab52b7bda (patch)
tree96a851037af8cc5c220ba4f3ba37a9b9cbc5b1b6 /examples/open.js
parent35d5ed7815f4707c79565a45261ffadc21d604be (diff)
downloadtime-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.tar.gz
time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.tar.zst
time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.zip
add focusOnOpen option (#61)
Diffstat (limited to 'examples/open.js')
-rw-r--r--examples/open.js7
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 }