Skip to content

[manager-components]: the label displayed with noResultLabel does not spread through all the columns when used with rowSelection #18670

@Ennoriel

Description

@Ennoriel

On which entity, you would like to report a bug?

Datagrid

Description

The label displayed with noResultLabel does not spread through all the columns when used with rowSelection. This is because the colSpan attribute does not take into account the extra column added with rowSelection.

<td
className="text-center"
colSpan={columns.length + (!renderSubComponent ? 0 : 1)}
>
<DataGridTextCell>
{noResultLabel ?? t('common_pagination_no_results')}
</DataGridTextCell>
</td>

Image

Steps to reproduce

use Datagrid with both noResultLabel and rowSelection props.

Browser

all

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

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