Merge pull request #11470 from keymanapp/fix/web/error-without-neighbor

fix(web): fixes error on tab, enter when only a single input element is on the page
This commit is contained in:
Joshua Horton 2024-05-30 13:59:17 +07:00 committed by GitHub
commit c5f8ca66bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {