Replies: 1 comment 3 replies
-
Try setting |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
Setting
parameters: { options: { showPanel: false } }
does not work on first story for fresh load (i.e. base url, no cache, etc). Similar to #10109 and #12293 which were closed without a fix/workaround. Also similar to #14442.What this means is, if you go to the base url (
localhost:6006
), it seems to load with panel open and only after that it redirects to the story url (localhost:6006?path=/story/firststory--firststory
).If you go to the story url directly, the panel stays hidden. But that url is too long to share with users easily.
Workaround?
This issue has plagued us for a while, so were simply closing the panel through some hacky JS code which "clicks" the Hide addons button. But a recent change seems to have made it so that the Shortcuts menu is not part of the DOM tree and cannot be clicked without opening the menu first (which would be bad UX if it happened automatically).
So my question is: Is there a way to close the addons panel programmatically? Ideally the
showPanel
parameter would work on fresh load, but I understand that may not be an easy fix.Environment info
sb react 6.1.21, chrome 90, windows 10
Beta Was this translation helpful? Give feedback.
All reactions