Closed awacode21 closed 2 years ago
Might be related somehow to: https://github.com/histoire-dev/histoire/issues/164
Looks like it's working for me:
Maybe you mean the Auto Props Controls which are just overrides so they are inactive by default.
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?
Is there a config option to switch off the auto props display?
https://histoire.dev/reference/vue3/story.html#autopropsdisabled
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?
Is there a config option to switch off the auto props display?
https://histoire.dev/reference/vue3/story.html#autopropsdisabled
thank you very much for clarification and the docs link. i will open a feature request for displaying default values of props in the auto props controls
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