Skip to content

Commit 11ccda0

Browse files
mickrmergify[bot]
andauthored
fix(scroll): support scrollToAnnotation from parent (#503)
* fix(scroll): support scrollToAnnotation from parent * Change function signature of scrollToAnnotation to support receiving an annotation instead of an id. * Remove logic that gets the annotation from the store and uses the provided annotation to scroll. * fix(scroll): support scrollToAnnotation from parent * PR Feedback, reverted to the original code as to not over complicate by changing the function signature. * fix(scroll): support scrollToAnnotation from parent * Fix lint issue Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent c02e4aa commit 11ccda0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/common/BaseAnnotator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export default class BaseAnnotator extends EventEmitter {
109109

110110
public setActiveId(annotationId: string | null): void {
111111
this.store.dispatch(store.setActiveAnnotationIdAction(annotationId));
112-
this.scrollToAnnotation(annotationId); // TODO: Require parent to call separately
113112
}
114113

115114
public setVisibility(visibility: boolean): void {

0 commit comments

Comments
 (0)