1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

feat(ui): add sorting icon component and table header cell styling EE-3626 (#7165)

* feat(ui): add sorting icons EE-3626

feat(ui): Add react component for sorting icons

feat(ui) make component usable in angular 

* feat(ui): update angular example EE-3626
This commit is contained in:
Ali 2022-07-08 01:20:33 +12:00 committed by GitHub
parent 712207e69f
commit 14a8b1d897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 272 additions and 136 deletions

View file

@ -67,7 +67,13 @@ export function react2angular<T, U extends PropNames<T>[]>(
el
);
};
this.$onDestroy = () => ReactDOM.unmountComponentAtNode(el);
this.$onDestroy = () => {
// eslint-disable-next-line react/no-find-dom-node
const domNode = ReactDOM.findDOMNode(el);
if (domNode != null && domNode.parentElement != null) {
ReactDOM.unmountComponentAtNode(domNode.parentElement);
}
};
}
}