File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments