Skip to content

Attribute data-focused is never removed #249

Closed

Description

@el-gringo

Describe the bug
When moving focus to an other node, the old one stay with attribute data-focused="true"

To Reproduce

  1. Create at least 2 focusables.
  2. Move the focus from one to an other
  3. Check the HTML output, both have attribute data-focused="true"

Expected behavior
The after moving focus, the attribute data-focused should have been remove.

Screenshots

Additional context
https://github.com/NoriginMedia/Norigin-Spatial-Navigation/blob/main/packages/core/src/adapter/web.ts#L70

We test options.shouldFocusDOMNode but it has nothing to do with attribute data-focused

Activity

  1. xavi160 commented on Oct 26, 2026

    @xavi160
    Collaborator

    Good catch, I'm opening a PR to fix this: #252

  2. self-assigned this
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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