diff options
| author | bobzel <zzzman@gmail.com> | 2021-08-28 16:02:13 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-08-28 16:02:13 -0400 |
| commit | 2d2e027f11253834a337680bbfd1ac549bb2a1f0 (patch) | |
| tree | 2d07a728c65f267236e14e1c3ba4764dc15dbb0b /src/client/views/MarqueeAnnotator.tsx | |
| parent | 7c83bc30b3a6ed6061ef68bcef6a0e8941668b3c (diff) | |
made anchorMenu go away after user clicks the highlighter button
Diffstat (limited to 'src/client/views/MarqueeAnnotator.tsx')
| -rw-r--r-- | src/client/views/MarqueeAnnotator.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/MarqueeAnnotator.tsx b/src/client/views/MarqueeAnnotator.tsx index 1897572f8..eee365ed8 100644 --- a/src/client/views/MarqueeAnnotator.tsx +++ b/src/client/views/MarqueeAnnotator.tsx @@ -77,7 +77,7 @@ export class MarqueeAnnotator extends React.Component<MarqueeAnnotatorProps> { e.stopPropagation(); const sourceAnchorCreator = () => { const annoDoc = this.highlight("rgba(173, 216, 230, 0.75)", true); // hyperlink color - this.props.addDocument(annoDoc); + annoDoc && this.props.addDocument(annoDoc); return annoDoc; }; const targetCreator = (annotationOn: Doc | undefined) => { |
