aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/TooltipTextMenu.tsx
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-04-06 18:43:15 -0400
committerab <abdullah_ahmed@brown.edu>2019-04-06 18:43:15 -0400
commit49310acbdfd7ca239c939208b3766c54e980f6f1 (patch)
tree817528ebd1c8ce303dd1e01950ba23b7ccf80558 /src/client/util/TooltipTextMenu.tsx
parentdd561b6b81a2832972d15e6226327a49ec1cdf06 (diff)
drop fraught but technically undoable
Diffstat (limited to 'src/client/util/TooltipTextMenu.tsx')
-rw-r--r--src/client/util/TooltipTextMenu.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx
index 2a613ba8b..3a6eadac0 100644
--- a/src/client/util/TooltipTextMenu.tsx
+++ b/src/client/util/TooltipTextMenu.tsx
@@ -49,7 +49,7 @@ export class TooltipTextMenu {
e.preventDefault();
view.focus();
items.forEach(({ command, dom }) => {
- if (dom.contains(e.srcElement)) {
+ if (e.srcElement && dom.contains(e.srcElement as Node)) {
let active = command(view.state, view.dispatch, view);
//uncomment this if we want the bullet button to disappear if current selection is bulleted
// dom.style.display = active ? "" : "none"