Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

Commit 1901a3e

Browse files
authored
Visible items bug (#2878)
* Fix redraw order * Fix error when option is not defined * Allow template labels * Add .travis.yml file * Add experiment travis code * Fix react example * Fix getVisibleItems method * Remove console log
1 parent 92088be commit 1901a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/timeline/component/ItemSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ ItemSet.prototype.getVisibleItems = function() {
546546
for (var groupId in this.groups) {
547547
if (this.groups.hasOwnProperty(groupId)) {
548548
var group = this.groups[groupId];
549-
var rawVisibleItems = group.visibleItems;
549+
var rawVisibleItems = group.isVisible ? group.visibleItems : [];
550550

551551
// filter the "raw" set with visibleItems into a set which is really
552552
// visible by pixels

0 commit comments

Comments
 (0)