From a5750c51239540df8ed9019b34f3327161596c4e Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 6 Jul 2020 16:11:45 +0800 Subject: [PATCH] Controls: Fix object story switching --- .../official-storybook/stories/addon-controls.stories.tsx | 7 +++++++ lib/components/src/controls/Object.tsx | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/official-storybook/stories/addon-controls.stories.tsx b/examples/official-storybook/stories/addon-controls.stories.tsx index c4b7597f18e..1b1d61fa1dd 100644 --- a/examples/official-storybook/stories/addon-controls.stories.tsx +++ b/examples/official-storybook/stories/addon-controls.stories.tsx @@ -4,6 +4,11 @@ import Button from '../components/TsButton'; export default { title: 'Addons/Controls', component: Button, + argTypes: { + children: { control: 'text' }, + type: { control: 'text' }, + somethingElse: { control: 'object' }, + }, }; const Story = (args) =>