glennflanagan / react-collapsible

React component to wrap content in Collapsible element with trigger to open and close.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lazyRender do not render on first open

evelikov opened this issue · comments

Describe the bug

Whenever a non-open collapsible is annotated as lazyRender, rendering will not happen the first time it's being opened.

To Reproduce

  • Go to Arch reproducible website https://reproducible.archlinux.org/
  • Click on any "good" entry
  • Transition animation kicks in
  • The elements are never rendered - ... ok by "never" I've waited only 10 minutes ;-)
  • Click to close - transition kicks in and elements get rendered... wait what?
  • Click on the same collapsible element - elements are rendered

Expected behavior

  • Elements are rendered as the collapsible is opened

Additional context

As the footer of the website says - the code is available at https://gitlab.archlinux.org/archlinux/rebuilderd-website. With the interesting parts in here https://gitlab.archlinux.org/archlinux/rebuilderd-website/-/blob/master/src/Section.js.

While the website uses v2.8.1, the issue also happens with v2.8.4 and v2.9.0.