Auto-focus search input on Tab select.

This commit is contained in:
Gunther Brunner
2014-09-18 21:12:01 +09:00
parent 208094a254
commit 8f5fb96c5c
3 changed files with 12 additions and 6 deletions

View File

@@ -13,7 +13,9 @@ module.exports = function focusElementDirective($parse, $timeout) {
})
element.bind('blur', function () {
scope.$apply(model.assign(scope, false))
if (model && model.assign) {
scope.$apply(model.assign(scope, false))
}
})
}
}