]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Fix input autoComplete
authorafc163 <afc163@gmail.com>
Mon, 20 Feb 2017 08:16:13 +0000 (16:16 +0800)
committerafc163 <afc163@gmail.com>
Mon, 20 Feb 2017 08:16:13 +0000 (16:16 +0800)
1  2 
README.md
src/TimePicker.jsx

diff --cc README.md
index 4a368151a09f582c0674f0a3134859e0d8384249,5d8822a49a537fb55fde019079940690d201b1a3..c994218846bd73075135d213577211be51b83e48
+++ b/README.md
@@@ -68,12 -67,11 +68,11 @@@ AP
  | disabledSeconds         | Function                          | disabled second options                       |                                                                                            |
  | hideDisabledOptions     | Boolean                           | whether hide disabled options                 |                                                                                            |
  | onChange                | Function                          | null                                          | called when select a different value                                                       |
 +| addon                   | Function                          | nothing                                       | called from timepicker panel to render some addon to its bottom, like an OK button. Receives panel instance as parameter, to be able to close it like `panel.close()`.|
  | placement               | String                            | bottomLeft                                    | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
  | transitionName          | String                            | ''                                            |                                                                                            |
 -| autoComplete            | String                            | 'yes'                                         | one of ['yes', 'no']                                                                       |
 -
 +| name                    | String                            | nothing                                       | sets the name of the generated input                                                       |
  
  ## Test Case
  
  ```
index da47ac4d9c211192c985f6dbc0d9c88ae60feb8a,da0c57bbd589906b3787cda74a3aab376109a301..7d2395d3558d255c7fc966acd9a12b2efb8da669
@@@ -40,8 -39,7 +40,9 @@@ const Picker = React.createClass(
      onChange: PropTypes.func,
      onOpen: PropTypes.func,
      onClose: PropTypes.func,
 +    addon: PropTypes.func,
 +    name: PropTypes.string,
+     autoComplete: PropTypes.string,
    },
  
    getDefaultProps() {
      const {
        prefixCls, placeholder, placement, align,
        disabled, transitionName, style, className, showHour,
 +      showMinute, showSecond, getPopupContainer, name,
+       showSecond, getPopupContainer, autoComplete,
      } = this.props;
      const { open, value } = this.state;
      let popupClassName;