Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial collapsed state is always false on the initial render #155

Closed
ocimer opened this issue Mar 3, 2023 · 2 comments
Closed

Initial collapsed state is always false on the initial render #155

ocimer opened this issue Mar 3, 2023 · 2 comments
Labels
🐞 bug Something isn't working stale

Comments

@ocimer
Copy link

ocimer commented Mar 3, 2023

Describe the bug
Initial state of the collapsed value is always false on the initial render (only), even when "defaultCollapsed" prop is set.

To Reproduce
Steps to reproduce the behavior:

  1. Go to sanbox
  2. Refresh the page in the web view area and observe the console and the web view area.
  3. In the web view you will clearly see a jump from not collapsed to collapsed on page refresh, and the console will output "false" on initial render and "true" after.

Expected behavior
With the "defaultCollapsed" prop set I expect the sidebar to be collapsed even on the initial render.

Desktop (please complete the following information):
Any modern browser

@azouaoui-med azouaoui-med added the 🐞 bug Something isn't working label Mar 22, 2023
@Ishadir
Copy link

Ishadir commented Apr 12, 2023

2023-04-12.15-03-36.mp4

same here, im using defaultCollapsed true and this happends when i refresh the page with f5 or i enter the first time.

@stale
Copy link

stale bot commented Jun 12, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 12, 2023
@stale stale bot closed this as completed Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants