Skip to content

Commit

Permalink
Merge pull request #14 from cranesandcaff/master
Browse files Browse the repository at this point in the history
Fixed tab going to next tab index
  • Loading branch information
Jeff Collins committed Aug 22, 2014
2 parents ec580f3 + 5384d42 commit 0394ec0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mentio.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ angular.module('mentio', [])
ngModel: '='
},
controller: function($scope, $timeout, $attrs) {

$scope.query = function (triggerChar, triggerText) {
var remoteScope = $scope.triggerCharMap[triggerChar];
remoteScope.showMenu();
Expand Down Expand Up @@ -176,6 +176,7 @@ angular.module('mentio', [])
var activeMenuScope = $scope.getActiveMenuScope();
if (activeMenuScope) {
if (event.which === 9) {
event.preventDefault();
activeMenuScope.selectActive();
}

Expand Down Expand Up @@ -371,7 +372,7 @@ angular.module('mentio', [])
if (mentioAttr !== undefined) {
// send own scope to mentio directive so that the menu
// becomes attached
$rootScope.$broadcast('menuCreated',
$rootScope.$broadcast('menuCreated',
{
targetElement : scope.forElem,
scope : scope
Expand Down

0 comments on commit 0394ec0

Please sign in to comment.