chore: update lib menu click outside callback comment (#5687)
This commit is contained in:
parent
7922ce129e
commit
898789b979
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user