Skip to content

Commit cbf23d1

Browse files
authored
fix(ui5-table): render selectAll checkbox only in case ui5-table is not empty (#5523)
1 parent b07b896 commit cbf23d1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

packages/main/src/Table.hbs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
>
2020
{{#if isMultiSelect}}
2121
<th class="ui5-table-select-all-column" role="presentation" aria-hidden="true">
22-
<ui5-checkbox class="ui5-table-select-all-checkbox"
23-
?checked="{{_allRowsSelected}}"
24-
@ui5-change="{{_selectAll}}"
25-
aria-label="{{ariaLabelSelectAllText}}"
26-
tabindex="-1"
27-
>
28-
</ui5-checkbox>
22+
{{#if rows.length}}
23+
<ui5-checkbox class="ui5-table-select-all-checkbox"
24+
?checked="{{_allRowsSelected}}"
25+
@ui5-change="{{_selectAll}}"
26+
aria-label="{{ariaLabelSelectAllText}}"
27+
tabindex="-1"
28+
>
29+
</ui5-checkbox>
30+
{{/if}}
2931
</th>
3032
{{/if}}
3133

0 commit comments

Comments
 (0)