commit | 20f7ace81ab905dc7592dfc1ada9210a8ff24e65 | [log] [tgz] |
---|---|---|
author | Nils Diewald <nils@diewald-online.de> | Thu May 07 12:51:34 2015 +0000 |
committer | Nils Diewald <nils@diewald-online.de> | Thu May 07 12:51:34 2015 +0000 |
tree | 26ac52566860d1625327671c2d902e3719097c47 | |
parent | 565db10988c4d163f8ce5e1e89b80c930ce9ebcf [diff] [blame] |
Fixed active first item on non-hint menus
diff --git a/dev/js/src/hint/menu.js b/dev/js/src/hint/menu.js index bf965d7..4704bd2 100644 --- a/dev/js/src/hint/menu.js +++ b/dev/js/src/hint/menu.js
@@ -15,6 +15,9 @@ obj._element.classList.add('hint'); obj._hint = hint; + // Make the top item always active + obj._firstActive = true; + // This is only domspecific obj.element().addEventListener('blur', function (e) { this.menu.hide();