aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentButtonBar.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-30 13:11:26 -0400
committerbobzel <zzzman@gmail.com>2021-09-30 13:11:26 -0400
commit4e4a1ec7bb6c479e8fd1b0a7bfe73e2447bafc74 (patch)
tree31f3f09e71d837c713c4878aa8507994e4dcaf5c /src/client/views/DocumentButtonBar.tsx
parent065e9acb9243b31f0d15498cf9c46539accd593d (diff)
fixed creating/drawing straight horizontal/vertical lines. fixed showing proper context menu for ink.
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
-rw-r--r--src/client/views/DocumentButtonBar.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx
index 8edd7e5bd..aa9318310 100644
--- a/src/client/views/DocumentButtonBar.tsx
+++ b/src/client/views/DocumentButtonBar.tsx
@@ -28,6 +28,7 @@ import { PresBox } from './nodes/trails/PresBox';
import { undoBatch } from '../util/UndoManager';
import { CollectionViewType } from './collections/CollectionView';
import { Colors } from './global/globalEnums';
+import { DashFieldView } from './nodes/formattedText/DashFieldView';
const higflyout = require("@hig/flyout");
export const { anchorPoints } = higflyout;
export const Flyout = higflyout.default;
@@ -338,7 +339,7 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV
while (child.children.length) {
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?.className?.toString().includes(DashFieldView.name)) break;
if (next) child = next;
else break;
}