-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
"Initial state" controls empty even when prop values for the component got defined #188
Comments
Might be related somehow to: #164 |
But then i don't understand the auto props controls. What are they useful for? |
They allow you to override any prop value even if there are no controls authored for it. |
so you always need to define your own controls to reflect props initial state? sounds like auto props are useless. Because if you nevertheless need to define your own controls to reflect with initial state then you have always double controls which do the same. This confuses me a bit and i think also the "reader" because he don't know which of the controls to use. Is there a config option to switch off the auto props display? |
We could display the default values of props in the auto props controls, but that's separate from your original issue. Maybe you can open a feature request?
https://histoire.dev/reference/vue3/story.html#autopropsdisabled |
thank you very much for clarification and the docs link. |
Describe the bug
The initial state controls of a component are always empty, even though there got prop values defined for a component.
It doesn't matter if i set every single prop on its own for a component or if i use v-bind with an object containing the props. in each case the initial state controls are empty.
On reproduction with the button example the button gets the initial state to be red with count 2. But the controls are empty. I would expect that the controls get the values which are defined for the component.
Reproduction
https://stackblitz.com/edit/histoire-vue3-empty-controls-on-initial-state?file=src%2FBaseButton.story.vue
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: