Skip to content

amp-list: Fix layoutCallback promise chain in SSR path#29726

Merged
dreamofabear merged 1 commit intoampproject:masterfrom
dreamofabear:list-ssr-chain
Aug 6, 2020
Merged

amp-list: Fix layoutCallback promise chain in SSR path#29726
dreamofabear merged 1 commit intoampproject:masterfrom
dreamofabear:list-ssr-chain

Conversation

@dreamofabear
Copy link
Copy Markdown

Fixes a regression in #25964 which causes amp-list[layout=container] to have zero height during render (with SSR).

This is caused by firstLayoutCompleted() -> togglePlaceholder(false) before render of real children finishes, which causes the layout=container amp-list to lose its height (defined by its placeholder) have its height style locked to 0.

@google-cla google-cla bot added the cla: yes label Aug 6, 2020
Copy link
Copy Markdown
Member

@samouri samouri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops 😬 . Nice catch. How did we get alerted to the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants