"Show code" shows the code in wrong mode
See original GitHub issueDescribe the bug After update from 6.4.x to 6.5.x “Show code” shows the code in “code” mode instead of “auto”. If click “reset controls” or change any value in controls then the source is shown in “auto” mode.
To Reproduce
- open story -> Docs
- click “Show code”
Result - “code”:
(args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { badge: BadgeComponent },
template: '<badge v-bind="$props">Text example</badge>',
})
Expected result - “auto”:
<template><badge>Text example</badge></template>
- Click “reset controls”
Result - source is changed to correct mode:
<template><badge>Text example</badge></template>
Additional context “@storybook/addon-a11y”: “^6.5.9”, “@storybook/addon-actions”: “^6.5.9”, “@storybook/addon-essentials”: “^6.5.9”, “@storybook/addon-links”: “^6.5.9”, “@storybook/addon-postcss”: “^2.0.0”, “@storybook/builder-webpack5”: “^6.5.9”, “@storybook/manager-webpack5”: “^6.5.9”, “@storybook/vue”: “^6.5.9”,
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:7
Top Results From Across the Web
TSimpleCodec.Begin_EncryptMemory - Wrong mode
When initialising the codec by run-time code, you need to set the StreamCipherId. Insert the following line just before setting the BlockCipherId. FCodec....
Read more >Tech Talk #1 - E001 Wrong Mode Error - CASPOSS
In all cases this error appears when the mode keys "The ignition keys" have been turned during a sale or the most common...
Read more >Fix program errors and improve code - Visual Studio (Windows)
For a cleaner view of the issues, navigate to the bottom of the build Output window, and click the Error List tab. This...
Read more >Troubleshoot Terminal launch failures - Visual Studio Code
The exit codes displayed come from the shell and you may be able to diagnose shell issues by searching on the internet for...
Read more >Troubleshoot connection errors during Nest × Yale Lock setup
“Can't connect to the lock”; “Something went wrong”. The app may also show you one of the following help codes: T003. T010.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same problem after upgrading. any solution?
@Hanawa02 I am also using bootstrap-vue and have the same issue. One thing I noticed is that when passing
auto
todocs.source.type
storybook previews the code as rendered output