Skip to content

Virtualized SelectPanel logs missing data-index warning #8424

Description

@kendallgassner

Description

When using the virtualized prop in a SelectPanel I had to supress warning messages in my test suit.

The built-in virtualized SelectPanel example logs the following warning in the browser console:

FilteredActionList-fPBBbgAg.js:5 Missing attribute name 'data-index={index}' on measured element.

This appears to indicate that the element being measured for virtualization is missing the data-index={index} attribute expected by the virtualizer.

Reproduction

  1. Open the virtualized built-in SelectPanel Storybook example.
  2. Open the browser developer console.
  3. Interact with or scroll the SelectPanel.
  4. Observe the warning.

Expected behavior

The virtualized SelectPanel renders and measures its items without logging a missing data-index warning.

Actual behavior

The console reports that the measured element is missing data-index={index}.

Activity

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