Skip to content

Commit

Permalink
Prevent _showHideChildren from being called on placeholders.
Browse files Browse the repository at this point in the history
This CL fixes issue #4096 where certain cases could cause
_showHideChildren to get called on template placeholders.
  • Loading branch information
nik3daz committed Oct 26, 2016
1 parent 8fb44b0 commit 0468c60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/template/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,8 @@
// Implements extension point from Templatizer mixin
_showHideChildren: function(hidden) {
for (var i=0; i<this._instances.length; i++) {
this._instances[i]._showHideChildren(hidden);
if (!this._instances[i].isPlaceholder)
this._instances[i]._showHideChildren(hidden);
}
},

Expand Down

0 comments on commit 0468c60

Please sign in to comment.