mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-13 12:29:58 +02:00
feat: cache most of element selection (#6747)
This commit is contained in:
@@ -82,7 +82,9 @@ export const ContextMenu = React.memo(
|
||||
let label = "";
|
||||
if (item.contextItemLabel) {
|
||||
if (typeof item.contextItemLabel === "function") {
|
||||
label = t(item.contextItemLabel(elements, appState));
|
||||
label = t(
|
||||
item.contextItemLabel(elements, appState, actionManager.app),
|
||||
);
|
||||
} else {
|
||||
label = t(item.contextItemLabel);
|
||||
}
|
||||
|
Reference in New Issue
Block a user