Browse Source

fix(aot): Unmount AlwaysOnTop to remove listeners (#2307)

master
hristoterezov 7 years ago
parent
commit
d6c3ab64fa
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      react/features/always-on-top/index.js

+ 4
- 0
react/features/always-on-top/index.js View File

8
     <AlwaysOnTop />,
8
     <AlwaysOnTop />,
9
     document.getElementById('react')
9
     document.getElementById('react')
10
 );
10
 );
11
+
12
+window.addEventListener('beforeunload', () => {
13
+    ReactDOM.unmountComponentAtNode(document.getElementById('react'));
14
+});

Loading…
Cancel
Save