mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-13 11:38:31 +08:00
fix(prefs): ReactRemote should call componentWillUnmount
This commit is contained in:
parent
d23b0fd16c
commit
0650768788
1 changed files with 4 additions and 2 deletions
6
src/react-remote/react-remote-parent.js
vendored
6
src/react-remote/react-remote-parent.js
vendored
|
@ -280,8 +280,10 @@ var openWindowForComponent = function(Component, options) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
reactRemoteContainer.removeChild(container);
|
||||
console.log("Cleaned up react remote window");
|
||||
|
||||
React.render(React.createElement('div'), container, function() {
|
||||
reactRemoteContainer.removeChild(container);
|
||||
});
|
||||
container = null;
|
||||
thinWindow = null;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue