You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsetup>import{ref}from'vue'import{logEvent}from'histoire/client'importBaseButtonfrom'./BaseButton.vue'letinitStateNoBeuno=()=>({color: "#f00",})letinitStateBeuno=()=>({props: {color: "#f00"}})consttext=ref('Click me')</script><template><Story><Variant#default='{ state }' :init-state="initStateNoBeuno"
title='Unexpected properties'
><BaseButtonv-bind="state">
{{ text }}
</BaseButton></Variant><Variant#default='{ state }'
:init-state="initStateBeuno"
title='Nesting works'
><BaseButtonv-bind="state.props">
{{ text }}
</BaseButton></Variant><template#controls><HstTexttitle="default slot" v-model="text" />
</template></Story></template>
When using the init-state property, either on a story or a variant, unexpected properties show in the dynamic source preview as shown in the screen shot:
If you use a nested property, then these properties disappear.
Describe the bug
Consider the following story:
When using the init-state property, either on a story or a variant, unexpected properties show in the dynamic source preview as shown in the screen shot:
If you use a nested property, then these properties disappear.
Reproduction
https://stackblitz.com/edit/histoire-vue3-starter-nqsezx?file=src%2FBaseButton.story.vue
System Info
Issue occurs using VUE 3.3 but also in provided sandbox environment.
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: