Skip to content

Commit

Permalink
fix options.time validation in CustomTime constructor to allow 0 value (
Browse files Browse the repository at this point in the history
#361)

Co-authored-by: David Vavrousek <[email protected]>
  • Loading branch information
David and David Vavrousek authored Mar 9, 2020
1 parent 5e6807c commit 40303a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/timeline/component/CustomTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CustomTime extends Component {
);
});

if (options && options.time) {
if (options && options.time != null) {
this.customTime = options.time;
} else {
this.customTime = new Date();
Expand Down Expand Up @@ -307,7 +307,7 @@ class CustomTime extends Component {
title: event.target.innerHTML,
event
});

event.stopPropagation();
}

Expand Down

0 comments on commit 40303a3

Please sign in to comment.