Skip to content

Commit

Permalink
Don't fire trigger event on keyup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Oct 16, 2016
1 parent b805f91 commit a1f8568
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
5 changes: 2 additions & 3 deletions dist/tribute.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tribute.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tribute.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tributejs",
"version": "2.0.5",
"version": "2.0.6",
"description": "Native ES6 @mentions",
"main": "dist/tribute.js",
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/Tribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ class Tribute {
li.setAttribute('data-index', index)
li.addEventListener('mouseenter', (e) => {
let li = e.target;
let index = li.getAttribute('data-index');
this.events.setActiveLi(index);
});
let index = li.getAttribute('data-index')
this.events.setActiveLi(index)
})
if (this.menuSelected === index) {
li.className = this.current.collection.selectClass
}
Expand Down
4 changes: 1 addition & 3 deletions src/TributeEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ class TributeEvents {
})

tribute.current.collection = collectionItem

tribute.showMenuFor(el, true)
if (tribute.inputEvent) tribute.showMenuFor(el, true)
},
enter: (e, el) => {
// choose selection
Expand Down Expand Up @@ -228,5 +227,4 @@ class TributeEvents {

}


export default TributeEvents;

0 comments on commit a1f8568

Please sign in to comment.