Skip to content

[EuiDataGrid] Rendering EuiTextField inside cell breaks focus #3334

@deliveryblueprintsdev

Description

@deliveryblueprintsdev

When rendering an EuiTextField inside a EuiDataGrid cell, it doesn't behave as described in the documentation with regards to interactive elements.

When clicking the cell, instead of the focusing the text element, the cell focuses instead, and a second click is required before the click event is bubbled down to the text input.

Additionally, any re-renders of the EuiDataGrid results in the focus of the text field being lost also, so it's only possible to enter one character before you have to re-focus again.

How can I ensure a single click focuses the cell input, and subsequent re-renders don't remove the focus from the field?

Video Example

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions