From 79c356e0fb3799e1f3521fd90884e517f7060f40 Mon Sep 17 00:00:00 2001 From: Ku7eKam Date: Sat, 1 Feb 2025 11:57:28 +0530 Subject: [PATCH 1/6] Fixed a comment typo in custom-hooks.js --- client/modules/IDE/hooks/custom-hooks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/modules/IDE/hooks/custom-hooks.js b/client/modules/IDE/hooks/custom-hooks.js index 1b2c14e441..6471bbcac2 100644 --- a/client/modules/IDE/hooks/custom-hooks.js +++ b/client/modules/IDE/hooks/custom-hooks.js @@ -47,8 +47,8 @@ export const useModalBehavior = (hideOverlay) => { }; // Usage: useEffectWithComparison((props, prevProps) => { ... }, { prop1, prop2 }) -// This hook basically applies useEffect but keeping track of the last value of relevant props -// So you can passa a 2-param function to capture new and old values and do whatever with them. +// This hook basically applies useEffect but keeps track of the last value of relevant props +// So you can pass a 2-param function to capture new and old values and do whatever with them. export const useEffectWithComparison = (fn, props) => { const [prevProps, update] = useState({}); From bb88cc98a8b3212d4380119f10bfefdac22ede28 Mon Sep 17 00:00:00 2001 From: Ku7eKam Date: Wed, 5 Feb 2025 10:47:16 +0530 Subject: [PATCH 2/6] Fix: Close file options drowndown when clicking outside (Issue #3332) --- client/modules/IDE/components/FileNode.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/modules/IDE/components/FileNode.jsx b/client/modules/IDE/components/FileNode.jsx index e589fb3cff..3c84d31196 100644 --- a/client/modules/IDE/components/FileNode.jsx +++ b/client/modules/IDE/components/FileNode.jsx @@ -292,6 +292,7 @@ const FileNode = ({ ref={fileOptionsRef} tabIndex="0" onClick={toggleFileOptions} + onBlur={() => setTimeout(hideFileOptions, 200)} >