Skip to content

Commit

Permalink
Merge pull request #11470 from keymanapp/fix/web/error-without-neighbor
Browse files Browse the repository at this point in the history
fix(web): fixes error on tab, enter when only a single input element is on the page
  • Loading branch information
jahorton authored May 30, 2024
2 parents 769c10c + 8535f43 commit c5f8ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/app/browser/src/defaultBrowserRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class DefaultBrowserRules extends DefaultRules {
const contextManager = this.contextManager;
const activeElement = contextManager.activeTarget?.getElement();
const nextElement = contextManager.page.findNeighboringInput(activeElement, back);
nextElement.focus();
nextElement?.focus();
}

switch(code) {
Expand Down

0 comments on commit c5f8ca6

Please sign in to comment.