Browse Source

chore: update lib menu click outside callback comment (#5687)

Ryan Di 2 years ago
parent
commit
898789b979
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/LibraryMenu.tsx

+ 2 - 1
src/components/LibraryMenu.tsx

@@ -107,7 +107,8 @@ export const LibraryMenu = ({
     ref,
     useCallback(
       (event) => {
-        // If click on the library icon, do nothing.
+        // If click on the library icon, do nothing so that LibraryButton
+        // can toggle library menu
         if ((event.target as Element).closest(".ToolIcon__library")) {
           return;
         }