storybook icon indicating copy to clipboard operation
storybook copied to clipboard

Number control cannot be cleared

Open life4aiur opened this issue 2 years ago • 0 comments

Number control cannot be cleared or set to null

To Reproduce Create any repo and initialize storybook, happens on any framework. Change the Label control for the generated "Button" story to be number instead of string. Whether it's required or not, once a value is entered it cannot be cleared out, it will always retain the last value held in the field.

System Environment Info:

System: OS: Windows 10 10.0.19042 CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz Binaries: Node: 16.17.0 - C:\Program Files\nodejs\node.EXE npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 105.0.5195.125 Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.42) npmPackages: @storybook/addon-actions: ^6.5.12 => 6.5.12 @storybook/addon-essentials: ^6.5.12 => 6.5.12 @storybook/addon-interactions: ^6.5.12 => 6.5.12 @storybook/addon-links: ^6.5.12 => 6.5.12 @storybook/builder-webpack5: ^6.5.12 => 6.5.12 @storybook/manager-webpack5: ^6.5.12 => 6.5.12 @storybook/testing-library: ^0.0.13 => 0.0.13 @storybook/vue3: ^6.5.12 => 6.5.12

Additional context The number should allow for no value to be set. The only way to reset it is to reload the story.

storybook-number-control

life4aiur avatar Sep 19 '22 19:09 life4aiur