Skip to content

Commit 0bbd6ca

Browse files
committed
Clicking somewhere in the text will hide the annotation popup
1 parent fd0659c commit 0bbd6ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/src/ng-annotate.coffee

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,4 +397,7 @@ ngAnnotate.directive "ngAnnotate", ($rootScope, $compile, $http, $q, NGAnnotatio
397397
onSelect event
398398
else if selection.type is "Caret" and event.target.nodeName is "SPAN"
399399
onClick event
400+
else if selection.type is "Caret"
401+
clearTooltips()
402+
clearPopups()
400403
}

0 commit comments

Comments
 (0)