Repository navigation
Responsive tabs (tabs on desktop, accordion on mobile) #383
Answered
by
not-authorized
not-authorized
asked this question in
Q&A
|
Hi All, I'm new in React and I need your help. I'm trying to build a responsive tab component and am almost done except for one thing. When the page loads on the small screen the first accordion panel is required to be expanded. I'm doing that by setting maxHeight to the element's scrolHeight, however, scrollHeight is always 0 at the first load. Please advise how to keep it open by default. |
Answered by
not-authorized
Jul 22, 2022
Replies: 2 comments 4 replies
|
Hey! I'm not sure I understand the issue, can you add some screenshots and ideally a live example? |
0 replies
|
Please use the following StackBlitz demo for reference. |
4 replies
Answer selected by
Zertz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Please use the following StackBlitz demo for reference.
Tabs Panel Demo