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

This commit is contained in:
Ryan Di 2022-09-12 13:49:22 +08:00 committed by GitHub
parent 7922ce129e
commit 898789b979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}