From f562e8c3dd1387d7aa3c44e1420ff73579cc9d4f Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 25 Nov 2019 13:10:28 +0100 Subject: [PATCH 1/2] FIX https://github.com/storybookjs/storybook/issues/5910 --- lib/ui/src/components/layout/mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/src/components/layout/mobile.js b/lib/ui/src/components/layout/mobile.js index 5e4eca8af536..9f62a9945c59 100644 --- a/lib/ui/src/components/layout/mobile.js +++ b/lib/ui/src/components/layout/mobile.js @@ -128,7 +128,7 @@ class Mobile extends Component { const { options } = props; this.state = { - active: options.initialActive, + active: options.initialActive || 1, }; } From 7d2dfc24c405a9b5d733f5d89a22eb2119d29028 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 25 Nov 2019 20:53:43 +0100 Subject: [PATCH 2/2] FIX --- lib/ui/src/components/layout/mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/src/components/layout/mobile.js b/lib/ui/src/components/layout/mobile.js index 9f62a9945c59..426d88c01bc0 100644 --- a/lib/ui/src/components/layout/mobile.js +++ b/lib/ui/src/components/layout/mobile.js @@ -128,7 +128,7 @@ class Mobile extends Component { const { options } = props; this.state = { - active: options.initialActive || 1, + active: typeof options.initialActive === 'number' ? options.initialActive : 1, }; }