Create annotation when clicking "Annotate" button label
Fix a bug where clicking on the text "Annotate", as opposed to the icon, of the Annotate button would result in a highlight being created. When clicking on the text, `event.target` was the "Annotate" `<span>` instead of the `<button>` and so the `isAnnotateCommand` test failed.
Showing
Please register or sign in to comment