From ee2fe8cd7a4f5c0727b04220382a59ddb670cc35 Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Sun, 4 Mar 2018 19:10:24 +0300 Subject: [PATCH] Merge pull request #3142 from storybooks/unset-background Unset background when switching to a non-background story --- addons/background/src/BackgroundPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/background/src/BackgroundPanel.js b/addons/background/src/BackgroundPanel.js index de06c23e0f69..bf1172ba9230 100644 --- a/addons/background/src/BackgroundPanel.js +++ b/addons/background/src/BackgroundPanel.js @@ -89,6 +89,7 @@ export default class BackgroundPanel extends Component { this.channel.on('background-unset', () => { this.setState({ backgrounds: [] }); api.setQueryParams({ background: null }); + this.updateIframe('none'); }); }