Skip to content

Commit

Permalink
Fix: Only unmount popover when hiding all annotations (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum authored Mar 21, 2019
1 parent 9a71320 commit c42a8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class Annotator extends EventEmitter {
Object.keys(this.modeControllers).forEach((mode) => {
this.modeControllers[mode].destroyPendingThreads();
this.modeControllers[mode].applyActionToThreads((thread) => {
thread.hide();
thread.unmountPopover();
});
});
}
Expand Down

0 comments on commit c42a8ff

Please sign in to comment.