//
// SPDX-License-Identifier: AGPL-3.0
-import React, { useEffect } from 'react';
+import React from 'react';
import {
WithStyles,
withStyles,
};
icon = React.createRef<HTMLElement>();
+ componentWillUnmount(): void {
+ this.submit.cancel();
+ }
+
render() {
const { name, classes, defaultSelection = SelectionMode.ALL, children } = this.props;
const isActive = getNodeDescendants('')(this.state.filters).some((f) => (defaultSelection === SelectionMode.ALL ? !f.selected : f.selected));
</>
</Card>
</Popover>
- <this.MountHandler />
</>
);
}
}
}, 1000);
- MountHandler = () => {
- useEffect(() => {
- return () => {
- this.submit.cancel();
- };
- }, []);
- return null;
- };
-
close = () => {
this.setState((prev) => ({
...prev,