diff options
author | 偏右 <afc163@gmail.com> | 2017-10-22 16:38:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-22 16:38:04 +0800 |
commit | f0ac29c61df164ab3e867ef86137faa13d85a87f (patch) | |
tree | 6b1baa2373001870fa00310da36d46b21e8a43c8 /examples/open.js | |
parent | cc2dca8a2bb0bf3b820903043be2586fb413c458 (diff) | |
parent | 8a116e355bfabda48537be06d21cf01fdceaa8b7 (diff) | |
download | time-picker-f0ac29c61df164ab3e867ef86137faa13d85a87f.tar.gz time-picker-f0ac29c61df164ab3e867ef86137faa13d85a87f.tar.zst time-picker-f0ac29c61df164ab3e867ef86137faa13d85a87f.zip |
Merge branch 'master' into picker-step
Diffstat (limited to 'examples/open.js')
-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 | } |