Update autocomplete.js

This commit is contained in:
trystanclarke 2015-03-02 09:35:46 +00:00
commit 967177bbc5

View file

@ -143,7 +143,7 @@ var Autocomplete = function() {
// on IE preventDefault doesn't stop scrollbar from being focussed
var el = document.activeElement;
var text = this.editor.textInput.getElement()
if (el != text && this.popup && el.parentNode != this.popup.container
if (el != text && ( !this.popup || el.parentNode != this.popup.container )
&& el != this.tooltipNode && e.relatedTarget != this.tooltipNode
&& e.relatedTarget != text
) {