File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -479,12 +479,12 @@ function Highlighter(options = hhDefaultOptions) {
479479 this . deactivateHighlights = ( removeSelectionRanges = true ) => {
480480 const deactivatedHighlight = highlightsById [ activeHighlightId ] ;
481481 activeHighlightId = null ;
482- updateSelectionUi ( 'appearance' ) ;
483482 previousSelectionRange = null ;
484483 const selection = window . getSelection ( ) ;
485484 if ( removeSelectionRanges && selection . anchorNode && this . annotatableContainer . contains ( selection . anchorNode ) ) {
486485 selection . collapseToStart ( ) ;
487486 }
487+ updateSelectionUi ( 'appearance' ) ;
488488 if ( deactivatedHighlight ) {
489489 this . annotatableContainer . dispatchEvent ( new CustomEvent ( 'hh:highlightdeactivate' , { detail : {
490490 highlight : deactivatedHighlight ,
You can’t perform that action at this time.
0 commit comments