Improve hint behaviour in webkit
Change-Id: Ib0dd00e4c54764afc13423c5f514afb3f7cad4ce
diff --git a/dev/js/src/hint.js b/dev/js/src/hint.js
index c93d178..519ed26 100644
--- a/dev/js/src/hint.js
+++ b/dev/js/src/hint.js
@@ -264,8 +264,9 @@
if (menu = this.contextMenu(ifContext)) {
this.active(menu);
- var c = this._inputField.container();
+ var c = this._inputField.container();
c.appendChild(menu.element());
+
menu.show();
menu.focus();
// Focus on input field
@@ -303,6 +304,8 @@
// This does not work for alert currently!
//if (act._type !== 'alert') {
if (!this._alert.active) {
+
+ // This does not work for webkit!
var c = this._inputField.container();
c.removeChild(this._active.element());
}