We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8baaa0b commit e8a98daCopy full SHA for e8a98da
src/focus.directive.ts
@@ -124,8 +124,8 @@ export class FocusElement {
124
} catch (e) {}
125
}
126
127
- // set 'native' browser focus on input elements
128
- if (this.$el && (this.$el.nodeName === "INPUT" || this.$el.nodeName === "TEXTAREA")) this.$el.focus();
+ // set 'native' browser focus on input elements and focusable elements.
+ if (this.$el && ( this.$el.tabIndex !== -1 || this.$el.nodeName === "INPUT" || this.$el.nodeName === "TEXTAREA")) this.$el.focus();
129
130
131
// remove focus from element
0 commit comments