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
[6.3][6.4] [Vue3] Controls not updating the component if a wrapper is present #15403
Comments
The same issue with slots: Badge.vue<template>
<div>
<slot></slot>
</div>
</template> Badge.stories.tsimport { Story, Meta } from '@storybook/vue3'
import { defineComponent } from 'vue'
import Badge from './Badge.vue'
export default {
title: 'Badge',
component: Badge,
argTypes: {
default: {
control: 'text'
}
}
} as Meta
export const Default: Story = args => defineComponent({
components: { Badge },
setup: () => ({ args }),
template: '<badge>{{ args.default }}</badge>'
}) |
I've noticed changing the implementation to use the
But having to refactor all my stories would suck as last month a refactored everything to use the It also makes more sense to use the new composition API. |
@shilman, is it enough to release a fix? |
Or, if the composition API method is no longer supported and it needs to be changed to the props method, the documentation should reflect this. I hate to refactor everything again only to have the bug fixed and needing to refactor again if the props method becomes deprecated. It's very confusing to have 2 possible implementation methods and have them break. |
@johanvanhelden I'm going to revert the PR and release today |
Ta-da!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.0-alpha.6 containing PR #15409 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
I can confirm everything is working flawlessly again, thank you for the quick release @shilman ! ❤️ |
Yes, I've already updated my code as well. It works. |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.2 containing PR #15409 that references this issue. Upgrade today to the
|
This command cannot downgrade
It works. |
Describe the bug
After updating to 6.3 I noticed all my story controls stopped working. I came from 6.2.
If a wrapper is present around the Vue component (and all my stories have a layout wrapping around them), the controls are no longer updating the component. If I refresh the page the state does update if the control's URL parameters are present.
To Reproduce
npm run storybook
Footer Working - Without wrapper
and check that the alignment control is working.Footer Broken - With wrapper
and see the alignment control is not working.System
The text was updated successfully, but these errors were encountered: