We're updating the issue view to help you get more done. 

SmartFocus: Wrong fallback element calculated if the activeElement does not exist any more

Description

If the activeElement is not found in function SmartFocus_Restore of SmartNavigation.js, this leads to the last focusable element on the page being focused.

In this situation elementIndex is -1 and calling slice with argument -1 returns the last element of the collection.

It would be better to focus the first focusable element in this case, as this would be the default action when initially opening the page.

Assignee

Michael Ketting

Reporter

SJ

Labels

None

Components

Fix versions

Affects versions

Priority

Normal
Configure