diff --git a/web/src/app/browser/src/defaultBrowserRules.ts b/web/src/app/browser/src/defaultBrowserRules.ts index 723792d83ea..cbd70fc8c77 100644 --- a/web/src/app/browser/src/defaultBrowserRules.ts +++ b/web/src/app/browser/src/defaultBrowserRules.ts @@ -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) {