WebViewer Version: 8.12.0
According to documentation, I can toggle multi viewer mode with: UI.disableFeatures([UI.Feature.MultiViewerMode]) & UI.enableFeatures([this.instance.UI.Feature.MultiViewerMode])
This works as expected EXCEPT when in MultiViewMode = true mode, I add any annotation and then try to toggle off. I get the following exception
react-dom.production.min.js:216 TypeError: Cannot read properties of undefined (reading 'getAnnotationManager')
at bt (eventListener.js:19:39)
at Object.removeEventListener (eventListener.js:11:28)
at Wie.R (SaveModal.js:78:23)
at Lu (react-dom.production.min.js:262:224)
at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
at Uo (react-dom.production.min.js:122:325)
at Au (react-dom.production.min.js:261:308)
at du (react-dom.production.min.js:243:50)
at react-dom.production.min.js:123:115
at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
Any ideas?
i noticed this can also be observed on your demo website at JS PDF Side-By-Side View Demo | Apryse WebViewer.
- with side by side (multiview) on, add an annotation
- go into View Controls and toggle off “Compare Pages”
- the mentioned exception is thrown