-// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`should render correctly the date inputs 1`] = `
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`should render correctly the date inputs 1`] = `
<div>
- <DateRangeInput onChange={[Function]} value={ Object { "from": 2016-10-27T12:21:15.000Z, "to": 2016-12-27T12:21:15.000Z,
- } } />
- <Button className="spacer-left" disabled={false} onClick={[Function]}>
+ <DateRangeInput
+ onChange={[Function]}
+ value={
+ Object {
+ "from": 2016-10-27T12:21:15.000Z,
+ "to": 2016-12-27T12:21:15.000Z,
+ }
+ }
+ />
+ <Button
+ className="spacer-left"
+ disabled={false}
+ onClick={[Function]}
+ >
project_activity.reset_dates
</Button>
</div>
handleResetClick = () => {
this.changeValue('', false);
- if (this.props.value === undefined) {
+ if (this.props.value === undefined || this.props.value === '') {
this.setState({ value: '' });
}
if (this.input) {