Skip to content

[grid] Focus gets reused across pages #10448

@juuso-vaadin

Description

@juuso-vaadin

Description

Focus within a cell is not cleared when Grid is being scrolled and vaadin-grid-cell-content elements are assigned with new data.

Screen.Recording.2025-11-06.at.11.28.39.mov

Expected outcome

Focus should be cleared from cell contents when rows are initiated with new data. Focus could be moved to Grid's header or first cell without the visible focus ring.

Minimal reproducible example

https://vaadin.com/docs/latest/example?embed=grid-item-details-toggle-wc.js&import=component/grid/grid-item-details-toggle.ts,component/grid/react/grid-item-details-toggle.tsx

Steps to reproduce

  1. Open Grid example that has button in cell
  2. Focus one the buttons
  3. Scroll the grid past the "page size" to see the focus appearing again

Environment

Vaadin version(s): V24 & V25, web component and Flow component

Browsers

Chrome, Firefox, Safari

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