[ML] Fixing the unmounting jobs list react component on page change (#29980)

This commit is contained in:
James Gowdy 2019-02-05 14:51:20 +00:00 committed by GitHub
parent ddd5dc33e9
commit f351efa7dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,11 @@ module.directive('jobsPage', function () {
</I18nContext>,
element[0]
);
element.on('$destroy', () => {
ReactDOM.unmountComponentAtNode(element[0]);
scope.$destroy();
});
}
};
});