mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
chore: update lib menu click outside callback comment (#5687)
This commit is contained in:
parent
7922ce129e
commit
898789b979
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ export const LibraryMenu = ({
|
||||||
ref,
|
ref,
|
||||||
useCallback(
|
useCallback(
|
||||||
(event) => {
|
(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")) {
|
if ((event.target as Element).closest(".ToolIcon__library")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue