diff --git a/src/components/LibraryMenu.tsx b/src/components/LibraryMenu.tsx index c9fc7570..ebd60976 100644 --- a/src/components/LibraryMenu.tsx +++ b/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; }