diff --git a/demo/src/components/Main.js b/demo/src/components/Main.js index feb0a65be..127d64766 100644 --- a/demo/src/components/Main.js +++ b/demo/src/components/Main.js @@ -222,6 +222,33 @@ export default class Main extends Component { + + + + + + + + + + - this.dateRange.updatePreview(value)} - {...this.props} - range={this.props.ranges[focusedRange[0]]} - className={undefined} - onChange={specialHandleChange} - label={this.props.label} - /> + { this.props.showDefinedRange !== false ? ( + this.dateRange.updatePreview(value)} + {...this.props} + range={this.props.ranges[focusedRange[0]]} + className={undefined} + onChange={specialHandleChange} + label={this.props.label} + /> + ) : null} this.setState({ focusedRange })} focusedRange={focusedRange}