Skip to content

Commit

Permalink
Remove null name and id fields from FormControl to resolve controlId …
Browse files Browse the repository at this point in the history
…warning. Fixes #15.
  • Loading branch information
wehriam committed Jun 3, 2016
1 parent 0665ef8 commit 34fb67d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ See the demo at [pushtell.github.io/react-bootstrap-date-picker](http://pushtell

Please [★ on GitHub](https://github.com/pushtell/react-bootstrap-date-picker)!

Using this module in production? [We'd love to hear about it.](https://github.com/pushtell/react-bootstrap-date-picker/issues/17)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<h1>Table of Contents</h1>
Expand Down
2 changes: 1 addition & 1 deletion example/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const App = React.createClass({
</Row>
<Row>
<Col sm={6}>
<FormGroup>
<FormGroup controlId="change_handler">
<DatePicker onChange={this.handleChange} placeholder="Placeholder" value={this.state.date} id="change_handler_example" />
</FormGroup>
</Col>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"picker"
],
"main": "lib/index.js",
"version": "3.0.3",
"version": "3.1.0",
"description": "React-Bootstrap based date picker.",
"directories": {
"test": "test"
Expand Down
2 changes: 0 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,6 @@ export default React.createClass({
onFocus={this.handleFocus}
onBlur={this.handleBlur}
onChange={this.handleInputChange}
name={null}
id={null}
/>
<InputGroup.Addon onClick={this.clear} style={{cursor:this.state.inputValue ? "pointer" : "not-allowed"}}>{this.props.clearButtonElement}</InputGroup.Addon>
</InputGroup>;
Expand Down

0 comments on commit 34fb67d

Please sign in to comment.