Skip to content

Commit 83f1e06

Browse files
fix: remove invalid tabindex (#19893)
Co-authored-by: Nikhil Tomar <63502271+2nikhiltom@users.noreply.github.com>
1 parent 0ca9e24 commit 83f1e06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/web-components/src/components/data-table/table-toolbar-content.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ class CDSTableToolbarContent extends LitElement {
3131
size;
3232

3333
updated(changedProperties) {
34-
if (changedProperties.has('hasBatchActions')) {
35-
this.setAttribute('tabindex', `${this.hasBatchActions ? '-1' : ''}`);
34+
if (this.hasBatchActions) {
35+
this.setAttribute('tabindex', '-1');
36+
} else {
37+
this.removeAttribute('tabindex');
3638
}
3739

3840
if (changedProperties.has('size')) {

0 commit comments

Comments
 (0)