aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/linking/LinkMenu.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-06-25 01:50:26 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-06-25 01:50:26 -0400
commit92ea47bc7c42966f68ccfed4f1da57eb9b352d40 (patch)
tree9b3ca4b7876ed96b03204a34b992661d5490db9a /src/client/views/linking/LinkMenu.tsx
parent82a72d2acfa9ea23341d0996172e7da6c61c99b1 (diff)
fixed placement of menus and interaction with input boxes.
Diffstat (limited to 'src/client/views/linking/LinkMenu.tsx')
-rw-r--r--src/client/views/linking/LinkMenu.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/linking/LinkMenu.tsx b/src/client/views/linking/LinkMenu.tsx
index 0fcc0f0b9..de1d60a09 100644
--- a/src/client/views/linking/LinkMenu.tsx
+++ b/src/client/views/linking/LinkMenu.tsx
@@ -28,7 +28,7 @@ export class LinkMenu extends React.Component<Props> {
@action
onClick = (e: PointerEvent) => {
- if (!Array.from(this._linkMenuRef?.getElementsByTagName((e.target as HTMLElement).tagName) || []).includes(e.target as any)) {
+ if (this._linkMenuRef?.contains(e.target as any)) {
DocumentLinksButton.EditLink = undefined;
}
}