diff options
author | bobzel <zzzman@gmail.com> | 2021-09-30 12:03:54 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-30 12:03:54 -0400 |
commit | 065e9acb9243b31f0d15498cf9c46539accd593d (patch) | |
tree | 690e515ef4a1c5b0b26f8a046497cb0316b7159b | |
parent | 479a2a8e004e1b0e8711fc670b7a9146b3039dfa (diff) |
fixed context menu for ink from docbuttons bar
-rw-r--r-- | src/client/views/DocumentButtonBar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx index 7f428a881..8edd7e5bd 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -336,9 +336,9 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV openContextMenu = (e: React.MouseEvent) => { let child = SelectionManager.Views()[0].ContentDiv!.children[0]; while (child.children.length) { - const next = Array.from(child.children).find(c => typeof (c.className) === "string"); - if (next?.className.includes(DocumentView.ROOT_DIV)) break; - if (next?.className.includes("dashFieldView")) break; + const next = Array.from(child.children).find(c => c.className?.toString().includes("SVGAnimatedString") || typeof (c.className) === "string"); + if (next?.className?.toString().includes(DocumentView.ROOT_DIV)) break; + if (next?.className?.toString().includes("dashFieldView")) break; if (next) child = next; else break; } |