Closed jiayingxu closed 5 years ago
@jiayingxu LGTM - does the occlussion bit mean that expanded option groups are occluded at a certain point during the scroll? Like if I expande a section then say 2 more would the initial one that could be very far down the scroll's state revert to collapsed?
@rondale-sc, yep, the collapsing/expansing of the group headers work with occlusion. As the user scrolls up and down in the select list changing the occlusion viewport, the group headers that are collapsed or expanded are retained.
Add ability to collapse/expand group headers in
select-component
andmulti-select-component
.optionGroupPath
should be set andisGroupHeaderCollapsible=true
on the select.There were 2 possible approaches to implementing the hiding of the list items after the header is collapsed
display: none
to hide the list item if the header is collapsedApproach 1 was chosen was approach 2 was not feasible.
vertical-collection
is used to render the list items to utilize its occlusion performance capability. There currently is not a built-in mechanism invertical-collection
to schedule a re-measure or a re-render.