aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/Annotation.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-01-20 23:36:16 -0500
committerbobzel <zzzman@gmail.com>2021-01-20 23:36:16 -0500
commite369336c413a337e02afc027cc1aecdd76a496c5 (patch)
treea69d6298ee3e406e7cab3f10958872f8a6569741 /src/client/views/pdf/Annotation.tsx
parent68785a97178d229935c0429791081d7c09312dc3 (diff)
fixed hiding AnchorMenu in text boxes. encapsulated fadeOut of AnchorMenu within class for simplicity.
Diffstat (limited to 'src/client/views/pdf/Annotation.tsx')
-rw-r--r--src/client/views/pdf/Annotation.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx
index 85dd65901..cd32c2c3a 100644
--- a/src/client/views/pdf/Annotation.tsx
+++ b/src/client/views/pdf/Annotation.tsx
@@ -67,8 +67,8 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> {
}
componentWillUnmount() {
- this._brushDisposer && this._brushDisposer();
- this._reactionDisposer && this._reactionDisposer();
+ this._brushDisposer?.();
+ this._reactionDisposer?.();
}
@undoBatch
@@ -83,8 +83,8 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> {
DocListCast(group.annotations).forEach(anno => anno.delete = true);
}
-
AnchorMenu.Instance.fadeOut(true);
+ this.props.select(false);
}
@undoBatch