Skip to content

[Bug]: Controls are not resettable if 'Reset control’ is pressed in RAW object opened mode #24316

Open

Description

Describe the bug

If we open RAW mode and add new item and after that we want to reset the source won't work, beside that on UI works.

Repo steps:

  1. Add other items in the "Items list" source.
  2. Click on "Reset Controls".

Actual: Items which were added are not deleted from the source if we click on "Reset Controls".

Expected: If we click on "Reset Controls", items should be deleted from the source.

*Note: we need to close the RAW mode in order to reset the source.

See below video example:
https://github.com/storybookjs/storybook/assets/64419619/b3452fa1-c9e0-41ed-a733-6a9ac0666702

To Reproduce

Repo steps:

  1. Add other items in the "Items list" source.
  2. Click on "Reset Controls".

Actual: Items which were added are not deleted from the source if we click on "Reset Controls".

Expected: If we click on "Reset Controls", items should be deleted from the source.

System

Environment Info:

  System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
  Binaries:
    Node: 18.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (117.0.2045.43)
  npmPackages:
    @storybook/addon-actions: 7.0.20 => 7.0.20
    @storybook/addon-backgrounds: 7.0.20 => 7.0.20
    @storybook/addon-controls: 7.0.20 => 7.0.20
    @storybook/addon-links: 7.0.20 => 7.0.20
    @storybook/addons: 7.0.20 => 7.0.20
    @storybook/angular: 7.0.20 => 7.0.20

Additional context

Saw an issues that looks mostly the same as mine which was closed:
#17616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions