DocsPage controls do not work for iframe stories #145
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
storybook
This issue relates to Storybook.js
Issue description
On stories whose DocsPage is configured to use iframes instead of inline stories (
inlineStories: false
), editing the controls or "ArgsTable" properties doesn't update the rendered story.inlineStories: false
inlineStories: false
was used to fix init issues with components that require additional JavaScript functionality that was not initializing correctly. Specifically, this is required for any Swiper.js carousel and theHeroMedia
component (Javascript is used for the mobile caption toggle).Steps to reproduce the issue
inlineStories: false
. Ex: https://nasa-jpl.github.io/explorer-1/?path=/docs/components-blocks-blockarticlecarousel--carouselWhat's the expected result?
That the rendered story on the DocsPage will update to match changed values in the ArgsTable
What's the actual result?
The rendered story on the DocsPage does not update.
Additional details
Possible approaches, in order of effort:
prepareForInline
function. Additionally, these problematic components seem to initialize correctly in our MDX docs, so we could try switching to MDX as well.The text was updated successfully, but these errors were encountered: