feat: Closing of "Save to.." Dialog on Save To Disk (#7168)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Vaibhav Shukla
2023-10-19 23:21:50 +05:30
committed by GitHub
parent 83f86e2b86
commit b1cac35269
5 changed files with 37 additions and 13 deletions

View File

@@ -83,12 +83,12 @@ export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => {
}
};
useEffect(
() => () => {
useEffect(() => {
isMountedRef.current = true;
return () => {
isMountedRef.current = false;
},
[],
);
};
}, []);
const lastPointerTypeRef = useRef<PointerType | null>(null);