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
When viewing a story that includes default arg values for the control, when one of the controls is updated, the URL of the story updates to reference the story with the modified control. The default args are not set in the URL however, and are set to !undefined instead, so if you send the link to someone, they will not see the story with the correct controls.
storybookerror.mov
To Reproduce
I can create a repo if needed, but this can be seen in all Storybook deployments, including the ones in the Encyclopedia. For example:
Navigate to The EU Icon Component (https://ec.europa.eu/component-library/playground/ec/?path=/story/components-icon--all)
Notice that the default args for the controls are:
name: audio
size: medium
color: default
transformation: none
Change the size control from medium to large. Notice that the URL changes to https://ec.europa.eu/component-library/playground/ec/?path=/story/components-icon--all&args=size:l
Refresh the page and notice that the URL changes to https://ec.europa.eu/component-library/playground/ec/?path=/story/components-icon--all&args=name:!undefined;size:!undefined;color:!undefined;transform:!undefined, and none of the args are set, therefore you cannot send a URL with custom controls set to someone else to view.
System
Occurring in my version of Storybook as well:
Describe the bug
When viewing a story that includes default arg values for the control, when one of the controls is updated, the URL of the story updates to reference the story with the modified control. The default args are not set in the URL however, and are set to
!undefined
instead, so if you send the link to someone, they will not see the story with the correct controls.storybookerror.mov
To Reproduce
I can create a repo if needed, but this can be seen in all Storybook deployments, including the ones in the Encyclopedia. For example:
https://ec.europa.eu/component-library/playground/ec/?path=/story/components-icon--all
)name: audio
size: medium
color: default
transformation: none
size
control frommedium
tolarge
. Notice that the URL changes tohttps://ec.europa.eu/component-library/playground/ec/?path=/story/components-icon--all&args=size:l
https://ec.europa.eu/component-library/playground/ec/?path=/story/components-icon--all&args=name:!undefined;size:!undefined;color:!undefined;transform:!undefined
, and none of the args are set, therefore you cannot send a URL with custom controls set to someone else to view.System
Occurring in my version of Storybook as well:
Additional context
N/A
The text was updated successfully, but these errors were encountered: