Can not unSetToolMode

how to unSetToolMode

PDF.js Express Version

Detailed description of issue
I can setToolMode() but cannot seem to unset or toggle it off.

Expected behaviour
toggle Tool on and off

Does your issue happen with every document, or just one?
every load

Code snippet

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hi there,

You can’t toggle off tools once you have selected a tool, this mimics how the viewer’s UI works. To mimic what the viewer does when you toggle off an annotation you set the tool to the annotation select tool, which is our default tool.

Here’s a snippet on how to do that: