Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/expansion): able to tab into descendants with visibility…
… while closed (#24045) The expansion panel sets `visibility: hidden` while it's closed in order to prevent users from tabbing into the content. This breaks down if a child has its own `visibility`, because it overrides the one coming from the parent. We can't use `display` in the animation definition, because it prevents the animations module from calculating the height when animating. These changes add some CSS that will set `display: none` once the animation has settled.
- Loading branch information
c12347c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
this is problematic solution. Since this fix I have a slowness in my app.
In the performances measuring it appear under 'recalculate style' that takes long time.
Every change to any style which affects on the parent of this component causes to recalculate styles to all the children of this component. It become to be significant when there are many expansions and items into them.
I think that you shouldn't take care of cases when the inner items visibility are visible.
thanks