aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LinkMenuItem.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/LinkMenuItem.tsx')
-rw-r--r--src/client/views/nodes/LinkMenuItem.tsx16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/client/views/nodes/LinkMenuItem.tsx b/src/client/views/nodes/LinkMenuItem.tsx
index c3d9d033f..12eb2c2f7 100644
--- a/src/client/views/nodes/LinkMenuItem.tsx
+++ b/src/client/views/nodes/LinkMenuItem.tsx
@@ -32,30 +32,20 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> {
private _drag = React.createRef<HTMLDivElement>();
@observable private _showMore: boolean = false;
@action toggleShowMore() { this._showMore = !this._showMore; }
- @observable shouldUnhighlight: boolean = false;
- componentDidMount = () => {
- // document.addEventListener("pointerdown", this.unhighlight);
- }
unhighlight = () => {
- // if (this.shouldUnhighlight)
- // Doc.UnhighlightAll();
- Doc.UnHighlightDoc(this.props.destinationDoc);
+ Doc.UnhighlightAll();
+ document.removeEventListener("pointerdown", this.unhighlight);
}
@action
highlightDoc = () => {
- // this.shouldUnhighlight = false;
document.removeEventListener("pointerdown", this.unhighlight);
-
Doc.HighlightDoc(this.props.destinationDoc);
-
window.setTimeout(() => {
- // this.shouldUnhighlight = true;
document.addEventListener("pointerdown", this.unhighlight);
-
- }, 3000);
+ }, 10000);
}
// NOT DONE?