Hello!
I get the following error while hovering over the annotation bar controls in the PDF Viewer:
this.annotationToolbarModule.shapeToolbarElement is undefined
Code sample to reproduce the error:
<PdfViewerComponent
ref={viewer}
id="container"
documentPath={docUrl}
style={{ height: "640px" }}
enableFormFields={false}
enableFormDesigner={false}
toolbarSettings={{
toolbarItems: [
"PageNavigationTool",
"MagnificationTool",
"PanTool",
"SelectionTool",
"SearchOption",
"PrintOption",
"UndoRedoTool",
"CommentTool",
],
annotationToolbarItems: [
"HighlightTool",
"ShapeTool",
"InkAnnotationTool",
"AnnotationDeleteTool",
],
}}
isAnnotationToolbarOpen
>
<Inject
services={[
Toolbar,
Magnification,
Navigation,
Annotation,
LinkAnnotation,
BookmarkView,
ThumbnailView,
Print,
TextSelection,
TextSearch,
FormFields,
FormDesigner,
]}
/>
PdfViewerComponent>;