Skip to content

Commit 2e71646

Browse files
committed
[B] Restore focus to highlight on menu ESC
1 parent 5b05242 commit 2e71646

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/reader/containers/annotation/Annotatable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ export class Annotatable extends Component {
557557
annotationHref={this.getAnnotationUrl()}
558558
clearSelection={() =>
559559
this.resetState({
560-
restoreFocusTo: this.selectableRef,
560+
restoreFocusTo:
561+
this.activeAnnotationObject?.id ?? this.selectableRef,
561562
restoreSelectionTo: this.pendingAnnotationNode
562563
})
563564
}

0 commit comments

Comments
 (0)