Explorar el Código

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

Ryan Di hace 2 años
padre
commit
898789b979
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;
         }