Closed federico-terzi-anima closed 1 year ago
Any update on this? Does this just always happen when there is some kind of invalid control configuration?
Pretty sure this is fixed in 7.0. Please try upgrading to the latest prerelease.
Migration guide: https://storybook.js.org/migration-guides/7.0
First of all, thank you for your hard work! Storybook is amazing
Describe the bug Arguments defined with
control: boolean
gets incorrectly parsed as string instead of boolean on page refresh, unless alsotype: boolean
is specifiedMany storybooks I've encountered define a boolean argument as follows:
While this works correctly when changing the values using the control panel, it misbehave on page refresh. In such cases, an arg type like
disabled:false
gets incorrectly parsed as "false" string instead offalse
boolean value, which makes a lot of components misbehaveHere's a short recording of it happening: https://www.loom.com/share/97d1374096e84de2a202cab89c4d4781
To Reproduce I've created a repository for reproduction: https://github.com/federico-terzi-anima/storybook-boolean-parsing-bug Here's an overview of what happens: https://www.loom.com/share/97d1374096e84de2a202cab89c4d4781
System
Thanks!