Skip to content

Commit

Permalink
fix: use display contents for renderItem instance
Browse files Browse the repository at this point in the history
Use display contents for instance when using renderItem to prevent
requiring position absolute to 100% side children.
  • Loading branch information
megheaiulian authored and JockeCK committed Feb 24, 2022
1 parent e6849b8 commit 37e3c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmoz-data-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ class CosmozDataNav extends hauntedPolymer('haunted', useDataNav)(PolymerElement

_toggleInstance(inst, show) {
if (this.renderItem) {
inst.style.display = show ? 'block' : 'none';
inst.style.display = show ? 'contents' : 'none';
return;
}
inst?._showHideChildren(!show);
Expand Down

0 comments on commit 37e3c13

Please sign in to comment.