Skip to content

Commit

Permalink
Merge pull request #3142 from storybooks/unset-background
Browse files Browse the repository at this point in the history
Unset background when switching to a non-background story
  • Loading branch information
Hypnosphi authored Mar 4, 2018
2 parents 83aac95 + b7ea38e commit b11ce55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/background/src/BackgroundPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}

Expand Down

0 comments on commit b11ce55

Please sign in to comment.