Fix mouseover for invisible annotation assistant menu below assistant bar (Again issue #55)
Change-Id: I26c1c86335f65d7a08b8a446765bda318090fb3e
diff --git a/dev/js/spec/hintSpec.js b/dev/js/spec/hintSpec.js
index 5c6c16f..f45496c 100644
--- a/dev/js/spec/hintSpec.js
+++ b/dev/js/spec/hintSpec.js
@@ -375,7 +375,7 @@
expect(hint.active()).toBeTruthy();
// Blur
- hint.active().hideWithoutDestruction();
+ hint.active().hide();
expect(hint.active()).toBeFalsy();
});
diff --git a/dev/js/src/hint/menu.js b/dev/js/src/hint/menu.js
index 105273e..a9a3fb2 100644
--- a/dev/js/src/hint/menu.js
+++ b/dev/js/src/hint/menu.js
@@ -33,7 +33,7 @@
obj._firstActive = true;
obj.element().addEventListener('blur', function (e) {
- this.menu.hideWithoutDestruction();
+ this.menu.hide(); // WithoutDestruction();
});
// Focus on input field on hide
@@ -57,19 +57,6 @@
*/
hint : function () {
return this._hint;
- },
-
- /**
- * Hide the menu just for the moment,
- * without cleaning up anything,
- /* but resetting the prefix.
- */
- hideWithoutDestruction : function () {
- this.element().classList.remove("visible");
- if (this._hint) {
- this._hint.inputField().element().focus();
- this.onHide();
- };
}
};
});