-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Args (controls) of enum/array type are not being passed to "open in new tab" (canvas in iframe) #17517
Comments
toli444
changed the title
enum/array type args are not being passed to canvas in iframe
Args of enum/array type are not being passed to "open in new tab" (canvas in iframe)
Feb 16, 2022
any updates on this one? |
any updates on this one? |
toli444
changed the title
Args of enum/array type are not being passed to "open in new tab" (canvas in iframe)
Args (controls) of enum/array type are not being passed to "open in new tab" (canvas in iframe)
Apr 22, 2022
Hello there. Is there any update or ETA on this? :) |
I would also like to know if there is any ETA on this or at least if the team is aware of this issue. |
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get a lot of use out of opening a canvas in a new tab in my storybook for React app. However, I find that args are not passed to the component in the new tab if the component's prop-types are
PropTypes.oneOf
,PropTypes.oneOfType
. According to docs,argTypes
for Rect components can be generated fromdocgen
info. For the component in which I see the problem:__docgenInfo
looks like this:PropTypes
looks like this:With all the above,
colour
prop is not applied on the component if it is opened in canvas in new tab.If I change
PropTypes
:Or directly replace
__docgenInfo
with:Colour
prop applied as expectedIt would be great to have
new tab
mode work with complexargTypes
as it used toSystem
everything worked fine on Storybook
v16.3.12
. The problem appeared afterv16.4.0
update (tested onv16.4.19
as well).Additional Info
Might be connected with #17413
The text was updated successfully, but these errors were encountered: