Skip to content

Commit 34fb67d

Browse files
committed
Remove null name and id fields from FormControl to resolve controlId warning. Fixes #15.
1 parent 0665ef8 commit 34fb67d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ See the demo at [pushtell.github.io/react-bootstrap-date-picker](http://pushtell
1212

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

15+
Using this module in production? [We'd love to hear about it.](https://github.com/pushtell/react-bootstrap-date-picker/issues/17)
16+
1517
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1618
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1719
<h1>Table of Contents</h1>

example/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const App = React.createClass({
5454
</Row>
5555
<Row>
5656
<Col sm={6}>
57-
<FormGroup>
57+
<FormGroup controlId="change_handler">
5858
<DatePicker onChange={this.handleChange} placeholder="Placeholder" value={this.state.date} id="change_handler_example" />
5959
</FormGroup>
6060
</Col>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"picker"
1212
],
1313
"main": "lib/index.js",
14-
"version": "3.0.3",
14+
"version": "3.1.0",
1515
"description": "React-Bootstrap based date picker.",
1616
"directories": {
1717
"test": "test"

src/index.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,6 @@ export default React.createClass({
370370
onFocus={this.handleFocus}
371371
onBlur={this.handleBlur}
372372
onChange={this.handleInputChange}
373-
name={null}
374-
id={null}
375373
/>
376374
<InputGroup.Addon onClick={this.clear} style={{cursor:this.state.inputValue ? "pointer" : "not-allowed"}}>{this.props.clearButtonElement}</InputGroup.Addon>
377375
</InputGroup>;

0 commit comments

Comments
 (0)