mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Merge pull request #3142 from storybooks/unset-background
Unset background when switching to a non-background story
This commit is contained in:
commit
b11ce552e2
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user