Expansion panel expanded state issue with Virtual Scroll
See original GitHub issueBug, feature request, or proposal:
cdkVirtualScroll
does not work properly with matAccordion
and matExpansionPanel
.
The accordion does not respect the expansion state of individual expansion panels as you scroll.
What is the expected behavior?
The expansion state is maintained as you scroll
What is the current behavior?
If you expand the xth item in the accordion then as you scroll, the xth in the view will always be expanded. ie if you expand the 3rd item then as you scroll down to say the 1000th item then the 1003rd item will be expanded.
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Able to use expansion panels inside virtual scroll
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.0 Material 7.0 MacOS 10.14 TypeScript 3.x Browser Chrome 70.0
Is there anything else we should know?
No
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Vuetify Expansion Panels with Virtual Scroll - Stack Overflow
The problem is that when expanding one panel it is not well displayed due to the position absolute of the virtual item.
Read more >How To Use Scroll To View Within Expansion Panel - ADocLib
Able to use expansion panels inside virtual scroll. ... view.at the bottom of the panel visible only when the expansion is in its...
Read more >Ion-virtual-scroll does not grow when using a mat-expansion ...
So I want to combine virtual scroll of Ionic with a mat-expansion-panel of Angular . But because the item is a fixed size,...
Read more >Angular Material Expansion Panel - Javatpoint
The expansion panel headers are buttons. Users can use the keyboard to activate the expansion panel header to switch between an expanded state...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
4 years.
Still waiting for an update. It’s been almost 2 years.