Skip to content

Commit 5b05242

Browse files
committed
[B] Preserve removableHighlight interactive attributes
1 parent 8d32577 commit 5b05242

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

client/src/reader/components/section/body-nodes/nodes/Math/annotationHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const getAnnotationStyles = (
7979
? removableHighlight.id
8080
: null;
8181
const isInteractive =
82-
!pending && !isDetail && (!!textAnnotationIds.length || removableHighlight);
82+
removableHighlight || (!pending && !isDetail && !!textAnnotationIds.length);
8383

8484
const classes = classNames({
8585
primary: isCreator,

client/src/reader/components/section/body-nodes/nodes/Text.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ class TextNode extends Component {
190190

191191
const isDetail = this.props.openAnnotations.isDetail;
192192
const isInteractive =
193-
!pending &&
194-
!isDetail &&
195-
(!!textAnnotationIds.length || removableHighlight);
193+
removableHighlight ||
194+
(!pending && !isDetail && !!textAnnotationIds.length);
196195

197196
const classes = classNames({
198197
primary: isCreator,

0 commit comments

Comments
 (0)