aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
author偏右 <afc163@gmail.com>2017-10-22 16:34:22 +0800
committerGitHub <noreply@github.com>2017-10-22 16:34:22 +0800
commit8a116e355bfabda48537be06d21cf01fdceaa8b7 (patch)
tree1661660b49bb81a3fa3869ea6979ffd51cf8c2ad /examples
parent18b5785f0f551f8b97d40a1eb31d80d8cc5db562 (diff)
parent78598cc9f8608fc8bb1830d3384c8e7fd032eb3f (diff)
downloadtime-picker-8a116e355bfabda48537be06d21cf01fdceaa8b7.tar.gz
time-picker-8a116e355bfabda48537be06d21cf01fdceaa8b7.tar.zst
time-picker-8a116e355bfabda48537be06d21cf01fdceaa8b7.zip
Merge pull request #71 from ZaiusInc/focus-on-open
add focusOnOpen option (#61)
Diffstat (limited to 'examples')
-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 }