• Robert Knight's avatar
    Set focused state correctly for new highlights · a5c587c8
    Robert Knight authored
    If the user hovered an annotation card before anchoring in the document
    completed, or if an annotation was re-anchored in a PDF after the card
    was hovered, then the highlight in the document was incorrectly shown in
    an un-focused rather than focused state.
    
    Fix the issue by keeping track of the current set of focused annotations
    in the Guest and setting the focus state correctly for new highlights
    added by `anchor`.
    
    Part of https://github.com/hypothesis/client/issues/3269
    a5c587c8
guest.js 19.6 KB