Skip to content

manager.Focus: tree walking #6129

@tobiu

Description

@tobiu

I think we can do better here:

Right now, we parse the DOM paths and map them to related neo components. While this does work fine for nested widgets inside the DOM tree, it does not honor overlays as good as it should.

We should only fetch the closest component inside the focusin & focusout path and from there use the component tree.

  1. find the closest common ancestor
  2. walk the out path component tree upwards and fire focusLeave
  3. walk the in path component tree upwards and fire focusEnter
  4. fire focusMove on the common ancestor

It relies on floating components to be placed inside the component tree correctly.

@rwaters

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions