fix(aot): Unmount AlwaysOnTop to remove listeners (#2307)
This commit is contained in:
parent
eee87bc546
commit
d6c3ab64fa
|
@ -8,3 +8,7 @@ ReactDOM.render(
|
||||||
<AlwaysOnTop />,
|
<AlwaysOnTop />,
|
||||||
document.getElementById('react')
|
document.getElementById('react')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
window.addEventListener('beforeunload', () => {
|
||||||
|
ReactDOM.unmountComponentAtNode(document.getElementById('react'));
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue