You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug SfAccordion by default has all children hidden. With a prop open passed, selected child list is opening, but this is done on mounting, which is done on client side.
This leads to increasing CLS due to moving next element down after opening selected child list.
This can also have inpact on SEO, as links for child elements are not present in response from the server.
Expected behavior
On page load, list should be already opened.
Actual behavior
On page load, list list closed and is opening after a while.
Screenshots
On page load:
After a while list is opening:
Proposed solution SfAccordionItem should accept a new prop like openOnInit that works similarly and in pair with open prop. It could indicate the component if it should be opened on closed on init (SSR).
Describe the bug
SfAccordion
by default has all children hidden. With a propopen
passed, selected child list is opening, but this is done on mounting, which is done on client side.This leads to increasing CLS due to moving next element down after opening selected child list.
This can also have inpact on SEO, as links for child elements are not present in response from the server.
How to reproduce
Steps to reproduce the behavior:
Expected behavior
On page load, list should be already opened.
Actual behavior
On page load, list list closed and is opening after a while.
Screenshots
On page load:
After a while list is opening:
Proposed solution
SfAccordionItem
should accept a new prop likeopenOnInit
that works similarly and in pair withopen
prop. It could indicate the component if it should be opened on closed on init (SSR).┆Issue is synchronized with this Jira Zadanie by Unito
The text was updated successfully, but these errors were encountered: