Skip to content

Commit 9525e23

Browse files
committed
Fix test suite crashing when clearing the date using native control
1 parent cfc6c86 commit 9525e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ValueOptions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class ValueOptions extends Component {
99
onChange = (event) => {
1010
const { value } = event.target;
1111

12-
this.setValue(value);
12+
this.setValue(value ? new Date(value) : value);
1313
}
1414

1515
render() {

0 commit comments

Comments
 (0)