Skip to content

bug([CdkPopoverEdit]): [cdkRowHoverContent not displayed when table dataSource changes] #18934

Closed
@UnlikeMars

Description

@UnlikeMars

Reproduction

StackBlitz to reproduce my issue: https://stackblitz.com/edit/components-issue-eo9e4r

Steps to reproduce:

  1. Open the StackBlitz link
  2. Hover over the "State" column
  3. The cdkRowHoverContent will not be displayed on hover
  4. Click on any cell of the state column
  5. Cell gains focus and cdkRowHoverContent will be displayed for all cells (as expected)
  6. Move to the next side with the paginator (dataSource updates)
  7. The cdkRowHoverContent will not be displayed (has to gain focus by click again)

ezgif com-video-to-gif

Expected Behavior

I am expecting that a change of the dataSource via the paginator or by initial loading of the data, will not require a focus of individual cells in order to display the cdkRowHoverContent.

This StackBlitz shows the expected behavior, where hovering over any cell triggers the display of the cdkRowHoverContent without selecting any cell. In this example the dataSource does not change.

Actual Behavior

When altering the dataSource of a table in any way, for example by retrieving data through HTTP or paginating to another page with a paginator, the cdkRowHoverContent will not be displayed when directly hovering over table cells.

Environment

  • Angular: 9.0.1 (StackBlitz)
  • CDK/Material: 9.1.0/9.1.0
  • CDK-Experimental: 9.2.0
  • Browser(s): Google Chome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows (StackBlitz)

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions