Skip to content

Commit

Permalink
Fix firefox vdiff focus by forwarding focus-visible
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Jul 19, 2023
1 parent ff00651 commit e17ff15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mixins/focus/focus-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const FocusMixin = dedupeMixin(superclass => class extends superclass {
}
}

focus() {
focus(opts) {

const selector = this.constructor.focusElementSelector;
if (!selector) {
Expand All @@ -36,7 +36,7 @@ export const FocusMixin = dedupeMixin(superclass => class extends superclass {
throw new Error(`FocusMixin: selector "${selector}" yielded no element for "${this.tagName}"`);
}

elem.focus();
elem.focus(opts);

}

Expand Down

0 comments on commit e17ff15

Please sign in to comment.