diff options
author | afc163 <afc163@gmail.com> | 2017-03-09 10:34:39 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2017-03-09 10:34:39 +0800 |
commit | 8132e1ff3c6ea408e1dbd040971f0d13f2064123 (patch) | |
tree | e99eb83ad4ec9c564e7568c46501c861901fe1ed /examples/common.js | |
parent | 9a24009f67ac917abfc35ec5f061cf1c240e1cea (diff) | |
download | time-picker-8132e1ff3c6ea408e1dbd040971f0d13f2064123.tar.gz time-picker-8132e1ff3c6ea408e1dbd040971f0d13f2064123.tar.zst time-picker-8132e1ff3c6ea408e1dbd040971f0d13f2064123.zip |
Updates
Diffstat (limited to 'examples/common.js')
-rw-r--r-- | examples/common.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/common.js b/examples/common.js index e67abd0..5208dde 100644 --- a/examples/common.js +++ b/examples/common.js | |||
@@ -30914,8 +30914,7 @@ | |||
30914 | }); | 30914 | }); |
30915 | }, | 30915 | }, |
30916 | isAM: function isAM() { | 30916 | isAM: function isAM() { |
30917 | var value = this.props.value; | 30917 | var value = this.props.value || this.props.defaultOpenValue; |
30918 | |||
30919 | return value.hour() >= 0 && value.hour() < 12; | 30918 | return value.hour() >= 0 && value.hour() < 12; |
30920 | }, | 30919 | }, |
30921 | render: function render() { | 30920 | render: function render() { |