Skip to content

Unable to override defaultValue false using Story.args #612

@ddubrava

Description

@ddubrava

Describe the bug

If defaultValue in Story.argTypes is set to false, it cannot be overridden by a value in Story.args. This behavior occurs only when the default value is false. If it is set to true, the value can be changed to false through the story configuration. Same for 0/1

Reproduction

https://stackblitz.com/edit/ladle-rj7vgnvr

Environment

  • OS: MacOS
  • Browser: Chrome
  • Version: Chrome 134

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions