Enable NotesPanel after selecting AnnotationCreateSticky Tool

I want to enable NotesPanel after selecting AnnotationCreateSticky Tool.For now whenever I reload webviewer and select Sticky Tool notesPanel doesn’t get enable. When i add one annotation in webviewer only then panel gets enable.
So, how can i enable it after selecting the tool and also sticky annotation from viewer ?

Hi there,

The following code should do the trick!

}, document.getElementById('viewer')).then(instance => {

  const { docViewer, Tools } = instance;
  docViewer.on('toolModeUpdated', (tool) => { 
    if (tool instanceof Tools.StickyCreateTool) {

If you wanted to check on load if the sticky tool is selected you can use getToolMode combined with the logic above.