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
Notice that the JSX tab is visible but blank because of this code:
Primary.parameters={jsx: {disable: true,},};
Expected behavior
The JSX tab should not be shown in the addons panel when the addon is disabled. This is the behavior for other addons; for example, this code hides the Actions tab for the story:
I'm not sure what the problem here is, since the way the addon uses makeDecorator (#110) looks perfectly normal to me. Maybe something about that API has changed in more recent versions of Storybook? cc @petermikitsh@hipstersmoothie
The text was updated successfully, but these errors were encountered:
Describe the bug
When this addon is disabled for a story, the "JSX" tab is still shown in the addons panel, but with blank contents.
Steps to reproduce the behavior
yarn && yarn storybook
Notice that the JSX tab is visible but blank because of this code:
Expected behavior
The JSX tab should not be shown in the addons panel when the addon is disabled. This is the behavior for other addons; for example, this code hides the Actions tab for the story:
Screenshots and/or logs
When not disabled
When disabled
Environment
Additional context
The repro project uses
@storybook/[email protected]
. The project where I first observed this issue was on@storybook/[email protected]
.I'm not sure what the problem here is, since the way the addon uses
makeDecorator
(#110) looks perfectly normal to me. Maybe something about that API has changed in more recent versions of Storybook? cc @petermikitsh @hipstersmoothieThe text was updated successfully, but these errors were encountered: