You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'focus')
at SbbMenu.handleKeyDown (sbb-menu.entry.js:93:1)
at HostElement.eval (index-6bc740f4.js:1892:1)
at HostElement.nrWrapper (de:6:15742) undefined
Happened on beta.sbb.ch in language chose menu -> they have own list implementation, maybe related?
TypeError: Cannot read properties of undefined (reading 'focus')
at SbbMenu.handleKeyDown (sbb-menu.entry.js:93:1)
at HostElement.eval (index-6bc740f4.js:1892:1)
at HostElement.nrWrapper (de:6:15742) undefined
Happened on beta.sbb.ch in language chose menu -> they have own list implementation, maybe related?
Caused in:
handleKeyDown(evt) {
if (!isArrowKeyPressed(evt)) {
return;
}
evt.preventDefault();
const enabledActions = Array.from(this._element.children).filter((e) => e.tabIndex === 0);
const current = enabledActions.findIndex((e) => e === evt.target);
const nextIndex = getNextElementIndex(evt, current, enabledActions.length);
enabledActions[nextIndex].focus();
}
The text was updated successfully, but these errors were encountered: