Fixed tag autocomplete popup on focus

This commit is contained in:
Jeremy Ruston
2013-10-23 17:41:12 +01:00
parent dfdb34a5cc
commit f2ac04943f
2 changed files with 32 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ Popup.prototype.show = function(options) {
};
Popup.prototype.handleEvent = function(event) {
if(event.type === "click" && !$tw.utils.domContains(this.anchorDomNode,event.target)) {
if(event.type === "click" && this.anchorDomNode !== event.target && !$tw.utils.domContains(this.anchorDomNode,event.target)) {
this.cancel();
}
};