Skip to content

Commit 7e14562

Browse files
author
Bart van den Ende
committed
update compiled source
1 parent d11209c commit 7e14562

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/focus.directive.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ var FocusElement = /** @class */ (function () {
100100
catch (e) { }
101101
}
102102
}
103-
// set 'native' browser focus on input elements
104-
if (this.$el && (this.$el.nodeName === "INPUT" || this.$el.nodeName === "TEXTAREA"))
103+
// set 'native' browser focus on input elements and focusable elements.
104+
if (this.$el && (this.$el.tabIndex !== -1 || this.$el.nodeName === "INPUT" || this.$el.nodeName === "TEXTAREA"))
105105
this.$el.focus();
106106
};
107107
// remove focus from element
@@ -258,7 +258,7 @@ exports.default = {
258258
"enter": 13
259259
};
260260
}
261-
exports.navigationService = new navigation_service_1.NavigationService(options.keyCodes);
261+
exports.navigationService = (options.navigationService) ? new options.navigationService(options.keyCodes) : new navigation_service_1.NavigationService(options.keyCodes);
262262
Vue.directive("focus", {
263263
// directive lifecycle
264264
bind: function (el, binding, vnode) {

0 commit comments

Comments
 (0)