Skip to content

Commit da5fc2c

Browse files
fixing tests and warnings
1 parent 72adbc9 commit da5fc2c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/fields/AxisRangeValue.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import {connectToContainer} from 'lib';
77

88
export class UnconnectedAxisRangeValue extends Component {
99
render() {
10-
return !this.props.multiValued &&
11-
this.props.fullContainer &&
12-
this.props.fullContainer.type === 'date' ? (
10+
return this.props.multiValued ||
11+
(this.props.fullContainer && this.props.fullContainer.type === 'date') ? (
1312
<UnconnectedText {...this.props} />
1413
) : (
1514
<UnconnectedNumeric {...this.props} />

src/components/fields/Numeric.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export class UnconnectedNumeric extends Component {
2222
step={this.props.step}
2323
min={this.props.min}
2424
max={this.props.max}
25+
onChange={this.props.updatePlot}
2526
onUpdate={this.props.updatePlot}
2627
showArrows={!this.props.hideArrows}
2728
showSlider={this.props.showSlider}

src/components/fields/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class UnconnectedText extends Component {
2727
}
2828

2929
UnconnectedText.propTypes = {
30-
defaultValue: PropTypes.string,
30+
defaultValue: PropTypes.any,
3131
fullValue: PropTypes.any,
3232
multiValued: PropTypes.bool,
3333
updatePlot: PropTypes.func,

src/components/widgets/TextInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class TextInput extends Component {
3030
}
3131

3232
TextInput.propTypes = {
33-
defaultValue: PropTypes.string,
33+
defaultValue: PropTypes.any,
3434
editableClassName: PropTypes.string,
3535
onUpdate: PropTypes.func.isRequired,
3636
placeholder: PropTypes.string,

0 commit comments

Comments
 (0)