• Robert Knight's avatar
    Create annotation when clicking "Annotate" button label · 61199437
    Robert Knight authored
    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.
    61199437
adder.js 9.02 KB