Procházet zdrojové kódy

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

Ryan Di před 2 roky
rodič
revize
898789b979
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;
         }