Skip to content

navigateChain in polyfill does not seem to always use supplied focusable option parameter #191

@jervisfm

Description

@jervisfm

There seems to be an issue with the navigateChain method.

When it's called with the parameter option of 'all', e.g. from the spatial navigation action api here

navigateChain(eventTarget, container, 'all', dir);

then this 'all' option value is not always used to find candidates. In particular, it's omitted in this container.focusableAreas() invocation here:

if (focusingController(eventTarget.spatialNavigationSearch(dir, container.focusableAreas(), container), dir))

The end effect is that sometimes spatial navigation does not look beyond what's visible on the screen to move focus despite the current focused element having spatial navigation action value of 'focus' indicating automatic focus movement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions